From b844a8e9d5cd95df0fb277133869e10d6f6d3591 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 13 May 2018 03:08:00 +0900 Subject: [PATCH] Add note --- src/services/note/create.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/services/note/create.ts b/src/services/note/create.ts index 9320889c2..133d85301 100644 --- a/src/services/note/create.ts +++ b/src/services/note/create.ts @@ -392,6 +392,7 @@ export default async (user: IUser, data: { } } + //#region TODO: これ重い // 今までで同じ投稿をRenoteしているか const existRenote = await Note.findOne({ userId: user._id, @@ -400,6 +401,7 @@ export default async (user: IUser, data: { $ne: note._id } }); + //#endregion if (!existRenote) { // Update renoteee status