summaryrefslogtreecommitdiff
path: root/src/server/api/endpoints/messaging
diff options
context:
space:
mode:
authorAya Morisawa <AyaMorisawa4869@gmail.com>2018-07-20 14:16:02 +0900
committerAya Morisawa <AyaMorisawa4869@gmail.com>2018-07-20 14:16:02 +0900
commit5d09b7e38b42f19530d51feeeae0e57ad4320351 (patch)
treef0e26bedf307603d87dbee9c7033699466e16b42 /src/server/api/endpoints/messaging
parentUpdate README.md (diff)
downloadsharkey-5d09b7e38b42f19530d51feeeae0e57ad4320351.tar.gz
sharkey-5d09b7e38b42f19530d51feeeae0e57ad4320351.tar.bz2
sharkey-5d09b7e38b42f19530d51feeeae0e57ad4320351.zip
mark as read all -> mark all as read
Close #855
Diffstat (limited to 'src/server/api/endpoints/messaging')
-rw-r--r--src/server/api/endpoints/messaging/messages.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/server/api/endpoints/messaging/messages.ts b/src/server/api/endpoints/messaging/messages.ts
index 84c28dc0c1..ae26419bc6 100644
--- a/src/server/api/endpoints/messaging/messages.ts
+++ b/src/server/api/endpoints/messaging/messages.ts
@@ -24,10 +24,10 @@ export default (params: any, user: ILocalUser) => new Promise(async (res, rej) =
const recipient = await User.findOne({
_id: recipientId
}, {
- fields: {
- _id: true
- }
- });
+ fields: {
+ _id: true
+ }
+ });
if (recipient === null) {
return rej('user not found');
@@ -96,7 +96,7 @@ export default (params: any, user: ILocalUser) => new Promise(async (res, rej) =
return;
}
- // Mark as read all
+ // Mark all as read
if (markAsRead) {
read(user._id, recipient._id, messages);
}