Migrate to tslint 5.1.0
This commit is contained in:
@@ -42,16 +42,16 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
|
||||
await Reaction.update({
|
||||
_id: exist._id
|
||||
}, {
|
||||
$set: {
|
||||
deleted_at: new Date()
|
||||
}
|
||||
});
|
||||
$set: {
|
||||
deleted_at: new Date()
|
||||
}
|
||||
});
|
||||
|
||||
// Send response
|
||||
res();
|
||||
|
||||
const dec = {};
|
||||
dec['reaction_counts.' + exist.reaction] = -1;
|
||||
dec[`reaction_counts.${exist.reaction}`] = -1;
|
||||
|
||||
// Decrement reactions count
|
||||
Post.update({ _id: post._id }, {
|
||||
|
Reference in New Issue
Block a user