fix: resolve variable declaration order, modal state and lint errors
Deploy Canina / deploy (push) Successful in 41s
Deploy Canina / deploy (push) Successful in 41s
This commit is contained in:
1 parent
fc324aacaf
commit
b2b80849ea
11 files changed
+353
-302
No files matched your search
@@ -157,12 +157,20 @@ export class AdminController {
|
||||
return { success: true, ...result };
|
||||
}
|
||||
|
||||
@Get('orders/:id')
|
||||
@ApiOperation({ summary: 'دریافت جزئیات کامل یک سفارش با شناسه' })
|
||||
async getOrderById(@Param('id') id: string) {
|
||||
const order = await this.adminService.getOrderById(id);
|
||||
return { success: true, data: order };
|
||||
}
|
||||
|
||||
@Put('orders/:id/status')
|
||||
@ApiOperation({ summary: 'بروزرسانی وضعیت سفارش' })
|
||||
async updateOrderStatus(
|
||||
@Param('id') id: string,
|
||||
@Body('status') status: string,
|
||||
@Body('trackingCode') trackingCode?: string,
|
||||
|
||||
) {
|
||||
const order = await this.adminService.updateOrderStatus(
|
||||
id,
|
||||
|
||||
Reference in new issue
Block a user