From 2fad6e6d5f57955dcf0db903154597a5b8b27700 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 18 Sep 2018 02:13:42 +0900 Subject: [PATCH] Refactor --- src/models/note.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/note.ts b/src/models/note.ts index bb600fc0c..ce307d061 100644 --- a/src/models/note.ts +++ b/src/models/note.ts @@ -196,7 +196,7 @@ export const hideNote = async (packedNote: any, meId: mongo.ObjectID) => { hide = false; } else { // 指定されているかどうか - const specified = packedNote.visibleUserIds.some((id: mongo.ObjectID) => id.equals(meId)); + const specified = packedNote.visibleUserIds.some((id: any) => meId.equals(id)); if (specified) { hide = false;