From bef375e7bfda73dc4f271cd33a6aa9006e652b5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivar=20Conradi=20=C3=98sthus?= Date: Tue, 8 Jun 2021 20:21:14 +0200 Subject: [PATCH] fix: userFeedback should not be allowed to throw --- src/lib/services/user-feedback-service.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib/services/user-feedback-service.ts b/src/lib/services/user-feedback-service.ts index f3325d623d..a25c0c3af5 100644 --- a/src/lib/services/user-feedback-service.ts +++ b/src/lib/services/user-feedback-service.ts @@ -21,7 +21,12 @@ export default class UserFeedbackService { if (user.isAPI) { return []; } - return this.userFeedbackStore.getAllUserFeedback(user.id); + try { + return await this.userFeedbackStore.getAllUserFeedback(user.id); + } catch (err) { + this.logger.error(err); + return []; + } } async getFeedback(