mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +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