From 811b7c613395dadeb8db81133bfd6cd1476a28bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?syuilo=E2=AD=90=EF=B8=8F?= Date: Thu, 26 Jan 2017 20:45:07 +0900 Subject: [PATCH] [API] Fix bug --- src/api/serializers/post.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/api/serializers/post.ts b/src/api/serializers/post.ts index 302383789..1805b70ae 100644 --- a/src/api/serializers/post.ts +++ b/src/api/serializers/post.ts @@ -89,7 +89,8 @@ const self = ( const liked = await Like .count({ user_id: me._id, - post_id: id + post_id: id, + deleted_at: { $exists: false } }, { limit: 1 });