From 380542db8e3a14737bd6373a2d1a94da8a7963b3 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 9 Nov 2018 03:52:03 +0900 Subject: [PATCH] [API] Fix #3169 --- src/server/api/endpoints/notes/reactions/delete.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/server/api/endpoints/notes/reactions/delete.ts b/src/server/api/endpoints/notes/reactions/delete.ts index 53e2f476b..367538bed 100644 --- a/src/server/api/endpoints/notes/reactions/delete.ts +++ b/src/server/api/endpoints/notes/reactions/delete.ts @@ -47,13 +47,9 @@ export default define(meta, (ps, user) => new Promise(async (res, rej) => { } // Delete reaction - await Reaction.update({ + await Reaction.remove({ _id: exist._id - }, { - $set: { - deletedAt: new Date() - } - }); + }); res();