mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +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) {
|
if (user.isAPI) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
return this.userFeedbackStore.getAllUserFeedback(user.id);
|
try {
|
||||||
|
return await this.userFeedbackStore.getAllUserFeedback(user.id);
|
||||||
|
} catch (err) {
|
||||||
|
this.logger.error(err);
|
||||||
|
return [];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async getFeedback(
|
async getFeedback(
|
||||||
|
Loading…
Reference in New Issue
Block a user