1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-20 00:08:02 +01:00

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
No known key found for this signature in database
GPG Key ID: 31AC596886B0BD09

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(