Skip to content

Commit 8b25805

Browse files
committed
Jobs.find() feature
1 parent 9a258e7 commit 8b25805

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

CHANGES.md

100644100755
File mode changed.

GUI.png

100644100755
File mode changed.

package/server/api.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ Jobs.run = function () {
6767

6868
// Update / manage a job even though it has not run
6969

70-
Jobs.manage = function () {
70+
Jobs.find = function () {
7171
check(arguments[0], String)
7272

7373
if (Utilities.registry.data[arguments[0]]) {
74-
return Actions.manage.apply(null, arguments);
74+
return Actions.find.apply(null, arguments);
7575
} else {
7676
Utilities.logger("invalid job name: " + arguments[0] || "not specified");
7777
return false;

package/server/imports/actions/manage/index.js renamed to package/server/imports/actions/find/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Utilities } from "../../utilities"
22
import { process } from "./process.js"
33

4-
var manage = function () {
4+
var find = function () {
55
// First, process the arguments
66
var input = Utilities.helpers.processJobArguments(arguments);
77

@@ -20,4 +20,4 @@ var manage = function () {
2020
}
2121
}
2222

23-
export { manage }
23+
export { find }

package/server/imports/actions/manage/toolbelt.js renamed to package/server/imports/actions/find/toolbelt.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ var toolbelt = function (jobDoc) {
4242
}
4343
}
4444

45-
return this.document.data[key] || null;
45+
return this.document.data[key];
4646
}
4747

4848
this.push = function (key, value) {

package/server/imports/actions/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ import { get } from './get'
33
import { clear } from './clear'
44
import { cancel } from './cancel'
55
import { execute } from './execute'
6-
import { manage } from './manage'
6+
import { find } from './find'
77
import { remove } from './remove'
88
import { replicate } from './replicate'
99
import { reschedule } from './reschedule'
1010

1111
var Actions = {
1212
add: add,
1313
get: get,
14+
find: find,
1415
clear: clear,
1516
cancel: cancel,
1617
execute: execute,
17-
manage: manage,
1818
remove: remove,
1919
replicate: replicate,
2020
reschedule: reschedule

0 commit comments

Comments
 (0)