Skip to content

Commit 66bf914

Browse files
pms1969Rainshaw
andauthored
fix: scheduled git sync task (#4481)
Signed-off-by: Paul Saunders <[email protected]> Co-authored-by: Rainshaw <[email protected]>
1 parent 1dc9742 commit 66bf914

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/core/scheduler.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Job {
3232
if (this.immediate) {
3333
this.invoke(data)
3434
} else {
35-
this.queue(data)
35+
this.enqueue(data)
3636
}
3737
}
3838

@@ -41,7 +41,7 @@ class Job {
4141
*
4242
* @param {Object} data Job Data
4343
*/
44-
queue(data) {
44+
enqueue(data) {
4545
this.timeout = setTimeout(this.invoke.bind(this), this.schedule.asMilliseconds(), data)
4646
}
4747

@@ -85,7 +85,7 @@ class Job {
8585
WIKI.logger.warn(err)
8686
}
8787
if (this.repeat && this.queue.jobs.includes(this)) {
88-
this.queue(data)
88+
this.enqueue(data)
8989
} else {
9090
this.stop().catch(() => {})
9191
}

0 commit comments

Comments
 (0)