fix: userFeedback should not be allowed to throw

This commit is contained in:
Ivar Conradi Østhus
2021-06-08 20:21:14 +02:00
parent 8e3e973f22
commit bef375e7bf
+6 -1
View File
@@ -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(