order
This commit is contained in:
@@ -331,7 +331,7 @@ export class OrdersService {
|
||||
return order;
|
||||
}
|
||||
|
||||
async cancelOrder(orderId: string, restId: string) {
|
||||
async cancelOrderAsUser(orderId: string, restId: string) {
|
||||
const order = await this.em.findOne(Order, { id: orderId, restaurant: { id: restId } });
|
||||
if (!order) {
|
||||
throw new NotFoundException('Order not found');
|
||||
|
||||
Reference in New Issue
Block a user