Permalink
Browse files

Remove comments refrencing deprecated findAndModify

Deprecated `findAndModify()` has already been updated to `findOneAndUpdate()` in #448
  • Loading branch information...
simison committed Jun 11, 2018
1 parent 1462e3f commit 56658de1395955672be6230dba2e16c1db55264b
Showing with 1 addition and 5 deletions.
  1. +0 −4 lib/agenda/index.js
  2. +1 −1 lib/agenda/save-job.js
View
@@ -1,7 +1,3 @@
/**
* @TODO: Refactor remaining deprecated MongoDB Native Driver methods: findAndModify()
*/
const {EventEmitter} = require('events');
const humanInterval = require('human-interval');
View
@@ -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

0 comments on commit 56658de

Please sign in to comment.