Fix Attempts to update all notifications (#8974)
* Fix massive update notification parameters * CHANGELOG * CHANGELOG
This commit is contained in:
		
							parent
							
								
									75d516011b
								
							
						
					
					
						commit
						53e54c22fa
					
				
					 2 changed files with 2 additions and 1 deletions
				
			
		|  | @ -27,7 +27,7 @@ export async function readNotificationByQuery( | |||
| 	userId: User['id'], | ||||
| 	query: Record<string, any> | ||||
| ) { | ||||
| 	const notificationIds = await Notifications.find({ | ||||
| 	const notificationIds = await Notifications.findBy({ | ||||
| 		...query, | ||||
| 		notifieeId: userId, | ||||
| 		isRead: false, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue