1+ import { check , Match } from 'meteor/check'
12import { Actions } from './imports/actions'
23import { Utilities } from './imports/utilities'
34import { Operator } from './imports/operator'
@@ -88,7 +89,7 @@ Jobs.register = function (jobs) {
8889 }
8990 } else {
9091 Utilities . logger ( "Register failed - this key should be a function: " + job ) ;
91- }
92+ }
9293 } )
9394}
9495
@@ -158,7 +159,7 @@ Jobs.execute = function (jobId, callback, force) {
158159 check ( force , Match . Optional ( Boolean ) )
159160
160161 // 1. Get the job
161- const doc = Utilities . collection . findOne ( {
162+ const doc = Utilities . collection . findOne ( {
162163 _id : jobId ,
163164 state : {
164165 $nin : [ "success" , "cancelled" ]
@@ -224,7 +225,7 @@ Jobs.replicate = function (jobId, config) {
224225 return Actions . replicate ( jobId , config ) ;
225226}
226227
227- // Clear resolved jobs - or all of them
228+ // Clear resolved jobs - or all of them
228229
229230Jobs . clear = function ( state , name , callback ) {
230231 check ( state , Match . OneOf ( undefined , String , [ String ] ) )
@@ -245,7 +246,7 @@ Jobs.remove = function (jobId, callback) {
245246
246247// Expose the MongoDB collection
247248
248- Meteor . startup ( function ( ) {
249+ Meteor . startup ( function ( ) {
249250 Jobs . collection = Utilities . collection
250251} )
251252
@@ -255,6 +256,6 @@ const JobsInternal = {
255256 Actions : Actions ,
256257 Utilities : Utilities ,
257258 Operator : Operator
258- } ;
259+ } ;
259260
260- export { Jobs , JobsInternal }
261+ export { Jobs , JobsInternal }
0 commit comments