From be9d8a679f2d38ab48bf4e1c215bafb70a6f810f Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 15 Apr 2019 12:11:32 +0900 Subject: [PATCH] Update read.ts --- src/services/note/read.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/services/note/read.ts b/src/services/note/read.ts index 44d75bd85..c05a58534 100644 --- a/src/services/note/read.ts +++ b/src/services/note/read.ts @@ -11,15 +11,15 @@ export default ( noteId: Note['id'] ) => new Promise(async (resolve, reject) => { // Remove document - const res = await NoteUnreads.delete({ + /*const res = */await NoteUnreads.delete({ userId: userId, noteId: noteId }); // v11 TODO: https://github.com/typeorm/typeorm/issues/2415 - if (res.affected == 0) { - return; - } + //if (res.affected == 0) { + // return; + //} const count1 = await NoteUnreads.count({ userId: userId,