Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Oct 1, 2021
1 parent 6d216fa commit 54d3d6e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions api/lib/schedule.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Schedule {
if (event.type === 'collect') {
await Schedule.collect();
} else if (['fabric', 'collect', 'sources'].includes(event.type)) {
await Schedule.batch(event.type);
await Schedule.batch(event.type, pool);
} else if (event.type === 'close') {
await Schedule.close(pool);
} else if (event.type === 'level') {
Expand All @@ -34,7 +34,9 @@ class Schedule {
* Generic function for triggering a batch job
* @param {String} type Type of batch job to trigger
*/
static async batch(type) {
static async batch(type, pool) {
if (type === 'sources') await JobError.clear(pool);

try {
return await batch.trigger({
type: type
Expand Down

0 comments on commit 54d3d6e

Please sign in to comment.