chore: fix problem of transcation beeing commited throw update the "

category variant
This commit is contained in:
mahyargdz
2025-09-21 11:45:24 +03:30
parent 3d1aa01f2e
commit 79f597cc90
23 changed files with 52 additions and 97 deletions
-1
View File
@@ -199,7 +199,6 @@ class SellerService {
async deleteSellerDocument(documentId: string, rejectReason: string) {
const document = await this.sellerDocumentRepo.model.findByIdAndDelete(documentId);
console.log({ document });
if (!document) throw new BadRequestError(SellerMessage.SellerDocumentNotFound);
await this.notificationService.notifyRejectDocument(document.seller.toString(), rejectReason);
return {