Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions lib/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -465,13 +465,17 @@ class API {
// no options
break;

case 'plugin':
if (!action.plugin_id || !action.plugin_id.toString().match(/^\w+$/)) {
return this.doError('api', err_prefix + ": Invalid Plugin ID.", callback);
}
break;

default:
case 'plugin':
if (!action.plugin_id || !action.plugin_id.toString().match(/^\w+$/)) {
return this.doError('api', err_prefix + ": Invalid Plugin ID.", callback);
}
break;

case 'suspend':
// suspend action - pauses job for manual approval
break;

default:
return this.doError('api', err_prefix + ": Unknown type", callback);
break;
} // switch item.type
Expand Down