Skip to content

Commit

Permalink
fix(deleteStatement): Test commit
Browse files Browse the repository at this point in the history
Closes LL-322
  • Loading branch information
Yevgenii Sharpinskii committed Feb 5, 2020
1 parent 1fd644a commit a57b3ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/models/lrs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

0 comments on commit a57b3ef

Please sign in to comment.