chore: fix problem of transcation beeing commited throw update the "
category variant
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user