Refactor
This commit is contained in:
		| @@ -96,8 +96,7 @@ module.exports = (params, user) => new Promise(async (res, rej) => { | |||||||
| 		}); | 		}); | ||||||
|  |  | ||||||
| 	// Serialize | 	// Serialize | ||||||
| 	res(await Promise.all(notifications.map(async notification => | 	res(await Promise.all(notifications.map(notification => pack(notification)))); | ||||||
| 		await pack(notification)))); |  | ||||||
|  |  | ||||||
| 	// Mark as read all | 	// Mark as read all | ||||||
| 	if (notifications.length > 0 && markAsRead) { | 	if (notifications.length > 0 && markAsRead) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 syuilo
					syuilo