Migrate to tslint 5.1.0

This commit is contained in:
Aya Morisawa
2017-04-14 20:45:37 +09:00
parent 798d1610f0
commit b095efaee5
16 changed files with 107 additions and 95 deletions

View File

@@ -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 }, {