fix lint
This commit is contained in:
@@ -14,22 +14,22 @@ export const meta = {
|
||||
params: {
|
||||
postId: {
|
||||
validator: $.type(ID),
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
errors: {
|
||||
noSuchPost: {
|
||||
message: 'No such post.',
|
||||
code: 'NO_SUCH_POST',
|
||||
id: 'c32e6dd0-b555-4413-925e-b3757d19ed84'
|
||||
id: 'c32e6dd0-b555-4413-925e-b3757d19ed84',
|
||||
},
|
||||
|
||||
notLiked: {
|
||||
message: 'You have not liked that post.',
|
||||
code: 'NOT_LIKED',
|
||||
id: 'e3e8e06e-be37-41f7-a5b4-87a8250288f0'
|
||||
id: 'e3e8e06e-be37-41f7-a5b4-87a8250288f0',
|
||||
},
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
export default define(meta, async (ps, user) => {
|
||||
@@ -40,7 +40,7 @@ export default define(meta, async (ps, user) => {
|
||||
|
||||
const exist = await GalleryLikes.findOne({
|
||||
postId: post.id,
|
||||
userId: user.id
|
||||
userId: user.id,
|
||||
});
|
||||
|
||||
if (exist == null) {
|
||||
|
||||
Reference in New Issue
Block a user