fix : update product : approved

This commit is contained in:
morteza-mortezai
2025-10-26 11:32:45 +03:30
parent b06e89dfce
commit 1ad879f930
3 changed files with 30 additions and 3 deletions
+1 -1
View File
@@ -143,7 +143,7 @@ class ProductController extends BaseController {
@httpPost("/update/save", Guard.authSeller(), ValidationMiddleware.validateInput(UpdateProductFinalStepDTO))
public async updateProductFinalStep(@requestBody() updateProductFinalStepDto: UpdateProductFinalStepDTO, @request() req: Request) {
const seller = req.user as ISeller;
const data = await this.productService.updateProductFinalStepS(updateProductFinalStepDto, seller._id.toString());
const data = await this.productService.updateProductFinalStepForSeller(updateProductFinalStepDto, seller._id.toString());
return this.response({ data }, HttpStatus.Created);
}
// request to create a product by admin