@@ -146,7 +146,7 @@ export class OrdersController {
|
||||
}
|
||||
|
||||
@UseGuards(AdminAuthGuard)
|
||||
@Permissions(Permission.VIEW_REPORTS)
|
||||
@Permissions(Permission.VIEW_ORDER_REPORTS)
|
||||
@ApiOperation({ summary: 'Get order report grouped by food' })
|
||||
@Get('admin/orders/report/by-food')
|
||||
getFoodOrderReport(@RestId() restId: string, @Query() dto: FoodOrderReportDto) {
|
||||
@@ -154,7 +154,7 @@ export class OrdersController {
|
||||
}
|
||||
|
||||
@UseGuards(AdminAuthGuard)
|
||||
@Permissions(Permission.VIEW_REPORTS)
|
||||
@Permissions(Permission.VIEW_ORDER_REPORTS)
|
||||
@ApiOperation({ summary: 'Get order report grouped by day' })
|
||||
@Get('admin/orders/report/by-day')
|
||||
getDailyOrderReport(@RestId() restId: string, @Query() dto: DailyOrderReportDto) {
|
||||
|
||||
Reference in New Issue
Block a user