fix(job): "invalid job action" check

This commit is contained in:
Simon Laux
2019-09-08 13:39:59 +02:00
committed by Friedel Ziegelmayer
parent 2e1bc9b14e
commit 0f939995d1

View File

@@ -1080,7 +1080,7 @@ pub fn job_add(
param: Params,
delay_seconds: i64,
) {
if action != Action::Unknown {
if action == Action::Unknown {
error!(context, 0, "Invalid action passed to job_add");
return;
}