Resolve conflicts

This commit is contained in:
syuilo
2018-03-29 14:48:47 +09:00
parent 281b388e39
commit bfc193d8cd
308 changed files with 3045 additions and 3200 deletions

View File

@ -29,10 +29,10 @@ export default (
// Update documents
await Notification.update({
_id: { $in: ids },
is_read: false
isRead: false
}, {
$set: {
is_read: true
isRead: true
}
}, {
multi: true
@ -41,8 +41,8 @@ export default (
// Calc count of my unread notifications
const count = await Notification
.count({
notifiee_id: userId,
is_read: false
notifieeId: userId,
isRead: false
});
if (count == 0) {