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:
parent
8e3e973f22
commit
bef375e7bf
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user