From ddd083d7a9e665029c77574bcbc7b5fd3b59ec09 Mon Sep 17 00:00:00 2001 From: Gbuntu Date: Sun, 24 Sep 2023 16:41:08 +0330 Subject: [PATCH] admin apis --- src/features/need/need.controller.ts | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/features/need/need.controller.ts b/src/features/need/need.controller.ts index a51af41dd..88144026a 100644 --- a/src/features/need/need.controller.ts +++ b/src/features/need/need.controller.ts @@ -307,11 +307,15 @@ export class NeedController { throw new ServerError('huuuh'); } console.log(flaskNeed); - await this.needService.updateNeedContributors( - need.id, - auditor, - purchaser, - ); + try { + await this.needService.updateNeedContributors( + need.id, + auditor, + purchaser, + ); + } catch (e) { + console.log(e); + } } } }