diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-01-17 11:11:22 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-01-17 11:11:22 +0900 |
| commit | 9f81288fccdbaf9184d49e61680747945b34f23d (patch) | |
| tree | dce25db34136ffd9c05852ed4c2c493c23c96c07 /src/api/endpoints/notifications | |
| parent | Fix bug (diff) | |
| download | misskey-9f81288fccdbaf9184d49e61680747945b34f23d.tar.gz misskey-9f81288fccdbaf9184d49e61680747945b34f23d.tar.bz2 misskey-9f81288fccdbaf9184d49e61680747945b34f23d.zip | |
Fix bug
Diffstat (limited to 'src/api/endpoints/notifications')
| -rw-r--r-- | src/api/endpoints/notifications/mark_as_read.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/endpoints/notifications/mark_as_read.js b/src/api/endpoints/notifications/mark_as_read.js index 16eb2009ac..855596a865 100644 --- a/src/api/endpoints/notifications/mark_as_read.js +++ b/src/api/endpoints/notifications/mark_as_read.js @@ -37,7 +37,7 @@ module.exports = (params, user) => // Update notification.is_read = true; - Notification.updateOne({ _id: notification._id }, { + Notification.update({ _id: notification._id }, { $set: { is_read: true } |