Skip to content

Commit

Permalink
add count to jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
zivglik committed Dec 7, 2022
1 parent 1923c66 commit 38facf2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/MongoDB/Jobs.js
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,18 @@ class Jobs extends Collection {
await watchCursor.close();
}
}

async count({
query,

exists,
}) {
const queryObj = this._createQuery({ ...query, exists });
const response = await super.count({
query: queryObj
});
return response;
}
}

module.exports = Jobs;
Expand Down

0 comments on commit 38facf2

Please sign in to comment.