Clean up
This commit is contained in:
		| @@ -16,8 +16,7 @@ import event from '../../../event'; | ||||
|  * @return {Promise<object>} | ||||
|  */ | ||||
| module.exports = (params, user) => | ||||
| 	new Promise(async (res, rej) => | ||||
| { | ||||
| 	new Promise(async (res, rej) => { | ||||
| 		const notificationId = params.notification; | ||||
|  | ||||
| 		if (notificationId === undefined || notificationId === null) { | ||||
| @@ -51,4 +50,4 @@ module.exports = (params, user) => | ||||
|  | ||||
| 		// Publish read_notification event | ||||
| 		event(user._id, 'read_notification', notificationObj); | ||||
| }); | ||||
| 	}); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Aya Morisawa
					Aya Morisawa