From 21f1da39c67db70df31f658d5dee69ebe9434696 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?syuilo=E2=AD=90=EF=B8=8F?= Date: Fri, 20 Jan 2017 17:23:37 +0900 Subject: [PATCH] [API] Fix bug --- src/api/endpoints/posts/likes/create.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/api/endpoints/posts/likes/create.js b/src/api/endpoints/posts/likes/create.js index 73054be875..d148c99d41 100644 --- a/src/api/endpoints/posts/likes/create.js +++ b/src/api/endpoints/posts/likes/create.js @@ -54,14 +54,12 @@ module.exports = (params, user) => } // Create like - const inserted = await Like.insert({ + await Like.insert({ created_at: new Date(), post_id: post._id, user_id: user._id }); - const like = inserted.ops[0]; - // Send response res();