mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-12-11 21:29:08 +09:00
[API] Fix bug
This commit is contained in:
parent
ca222eaa0c
commit
21f1da39c6
@ -54,14 +54,12 @@ module.exports = (params, user) =>
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Create like
|
// Create like
|
||||||
const inserted = await Like.insert({
|
await Like.insert({
|
||||||
created_at: new Date(),
|
created_at: new Date(),
|
||||||
post_id: post._id,
|
post_id: post._id,
|
||||||
user_id: user._id
|
user_id: user._id
|
||||||
});
|
});
|
||||||
|
|
||||||
const like = inserted.ops[0];
|
|
||||||
|
|
||||||
// Send response
|
// Send response
|
||||||
res();
|
res();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user