Skip to content

Commit defaaf8

Browse files
harryadelBastienRodz
authored andcommitted
async migration
1 parent 748cb8d commit defaaf8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

server/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Jobs.register = function (jobs) {
9595

9696
// Adds a new job to MongoDB
9797

98-
Jobs.run = function () {
98+
Jobs.run = async function () {
9999
check(arguments[0], String);
100100

101101
const lastArg = arguments[arguments.length - 1];

server/imports/operator/manager/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ manager.add = function (name) {
1414
manager.queues[name] = new queue(name, state)
1515
}
1616

17-
manager.start = function (name) {
17+
manager.start = async function (name) {
1818
if (debugMode) console.log(`Jobs: manager.start(${name})`)
1919

2020
const action = (queue) => manager.queues[queue].start()

0 commit comments

Comments
 (0)