Skip to content

Commit

Permalink
Merge pull request #27 from erik1110/feature/api
Browse files Browse the repository at this point in the history
[feat] remove status:-1
  • Loading branch information
erik1110 committed Feb 16, 2024
2 parents f7c6477 + cb393b8 commit e91fc4d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/features/order/order.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ export class OrderService {
const result = await this.orderModel.find(
{
orderUserId: orderUserId,
status: 1,
},
);
return getHttpResponse.successResponse({
Expand All @@ -81,7 +80,6 @@ export class OrderService {
async getMyOrderDetail(id: string, req: Request) {
const result = await this.orderModel.findOne({
_id: id,
status: 1,
});
if (!result) {
throw new AppError(
Expand Down

0 comments on commit e91fc4d

Please sign in to comment.