From 427b3dcd73d361fc77d49c33b6b4022329214f71 Mon Sep 17 00:00:00 2001 From: Aya Morisawa Date: Mon, 23 Jul 2018 13:56:25 +0900 Subject: Fix semantic errors --- src/services/note/create.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/services/note') diff --git a/src/services/note/create.ts b/src/services/note/create.ts index 8536b8b561..340120053b 100644 --- a/src/services/note/create.ts +++ b/src/services/note/create.ts @@ -363,10 +363,10 @@ async function notifyToWatchersOfRenotee(renote: INote, user: IUser, nm: Notific noteId: renote._id, userId: { $ne: user._id } }, { - fields: { - userId: true - } - }); + fields: { + userId: true + } + }); watchers.forEach(watcher => { nm.push(watcher.userId, type); @@ -378,10 +378,10 @@ async function notifyToWatchersOfReplyee(reply: INote, user: IUser, nm: Notifica noteId: reply._id, userId: { $ne: user._id } }, { - fields: { - userId: true - } - }); + fields: { + userId: true + } + }); watchers.forEach(watcher => { nm.push(watcher.userId, 'reply'); @@ -432,7 +432,7 @@ async function publishToFollowers(note: INote, noteObj: any, user: IUser, noteAc }); queue.forEach(inbox => { - deliver(user, noteActivity, inbox); + deliver(user as any, noteActivity, inbox); }); } -- cgit v1.2.3-freya