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();