This commit is contained in:
daniel.w 2024-10-23 18:07:05 +08:00
parent 8b76f7cd1e
commit d8cb437a74
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ func (l *GetOrderLogic) GetOrder(in *order.GetOrderReq) (*order.GetOrderResp, er
o, err := l.svcCtx.OrderModel.FindOneBusinessID(l.ctx, in.GetBusinessId())
if err != nil {
if errors.As(err, &mon.ErrNotFound) {
if errors.Is(mon.ErrNotFound, err) {
return nil, domain.NotFoundError(domain.DataNotFoundErrorCode, "failed to get this order id:", in.GetBusinessId())
}
return nil, err