Skip to content

Commit 6447252

Browse files
StorytellerCZBastienRodz
authored andcommitted
Add missing import from check package
1 parent 02227ed commit 6447252

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
.idea/

package/server/api.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { check, Match } from 'meteor/check'
12
import { Actions } from './imports/actions'
23
import { Utilities } from './imports/utilities'
34
import { 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

229230
Jobs.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

Comments
 (0)