Skip to content

Commit

Permalink
Update index creation in order to match new sort query
Browse files Browse the repository at this point in the history
  • Loading branch information
pozhega authored Nov 9, 2023
1 parent b3aec0f commit 77e1dc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/controllers/agendash.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = function (agenda, options) {
const collection = agenda._collection.collection || agenda._collection;
collection.createIndexes(
[
{ key: { nextRunAt: -1, lastRunAt: -1, lastFinishedAt: -1 } },
{ key: { repeatInterval: -1, nextRunAt: -1, lastRunAt: -1, lastFinishedAt: -1 } },
{ key: { name: 1, nextRunAt: -1, lastRunAt: -1, lastFinishedAt: -1 } },
],
(error) => {
Expand Down

0 comments on commit 77e1dc1

Please sign in to comment.