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 5364fb6 commit 1fd644a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/models/lrs.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import scopeChecks from 'lib/models/plugins/scopeChecks';
import * as scopes from 'lib/constants/scopes';
import addCRUDFunctions from 'lib/models/plugins/addCRUDFunctions';
import auditRemove from 'lib/models/plugins/auditRemove';
import logger from 'lib/logger';

const schema = new mongoose.Schema({
title: { type: String },
Expand Down Expand Up @@ -59,6 +60,7 @@ schema.statics.updateStatementCount = async (lrs) => {
};

schema.statics.decrementStatementCount = async (lrsId) => {
logger.info(lrsId);
// getConnection()
// .model('Lrs')
// .update({ _id: lrsId }, { $inc: { statementCount: -1 } })
Expand Down

0 comments on commit 1fd644a

Please sign in to comment.