Improve performance
This commit is contained in:
		| @@ -57,6 +57,8 @@ export default ( | ||||
| 		.count({ | ||||
| 			recipientId: userId, | ||||
| 			isRead: false | ||||
| 		}, { | ||||
| 			limit: 1 | ||||
| 		}); | ||||
|  | ||||
| 	if (count == 0) { | ||||
|   | ||||
| @@ -43,6 +43,8 @@ export default ( | ||||
| 		.count({ | ||||
| 			notifieeId: userId, | ||||
| 			isRead: false | ||||
| 		}, { | ||||
| 			limit: 1 | ||||
| 		}); | ||||
|  | ||||
| 	if (count == 0) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 syuilo
					syuilo