mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 08:53:48 +01:00
[API] Fix bug
This commit is contained in:
parent
ba1f3acd61
commit
64c190b066
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user