Skip to content

Commit

Permalink
Remove comments refrencing deprecated findAndModify
Browse files Browse the repository at this point in the history
Deprecated `findAndModify()` has already been updated to `findOneAndUpdate()` in #448
  • Loading branch information
simison committed Jun 11, 2018
1 parent 1462e3f commit 56658de
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions lib/agenda/index.js
@@ -1,7 +1,3 @@
/**
* @TODO: Refactor remaining deprecated MongoDB Native Driver methods: findAndModify()
*/

const {EventEmitter} = require('events');
const humanInterval = require('human-interval');

Expand Down
2 changes: 1 addition & 1 deletion lib/agenda/save-job.js
Expand Up @@ -16,7 +16,7 @@ const processDbResult = (job, result) => {
debug('processDbResult() called with success, checking whether to process job immediately or not');

// We have a result from the above calls
// findAndModify() returns different results than insertOne() so check for that
// findOneAndUpdate() returns different results than insertOne() so check for that
let res = result.ops ? result.ops : result.value;
if (res) {
// If it is an array, grab the first job
Expand Down

0 comments on commit 56658de

Please sign in to comment.