From a57b3eff0ab82a5aa2eee141deade766bd839daf Mon Sep 17 00:00:00 2001 From: Yevgenii Sharpinskii Date: Wed, 5 Feb 2020 18:36:40 +0200 Subject: [PATCH] fix(deleteStatement): Test commit Closes LL-322 --- lib/models/lrs.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/models/lrs.js b/lib/models/lrs.js index 9aa0dcc0bd..eabd05c499 100644 --- a/lib/models/lrs.js +++ b/lib/models/lrs.js @@ -61,10 +61,10 @@ schema.statics.updateStatementCount = async (lrs) => { schema.statics.decrementStatementCount = async (lrsId) => { logger.info(lrsId); - // getConnection() - // .model('Lrs') - // .update({ _id: lrsId }, { $inc: { statementCount: -1 } }) - // .exec(); + getConnection() + .model('Lrs') + .update({ _id: lrsId }, { $inc: { statementCount: -1 } }) + .exec(); }; export default getConnection().model('Lrs', schema, 'lrs');