Allow refreshObject task on root param
This commit is contained in:
1 parent
de65ca0921
commit
328bfa03e0
1 file changed
+4
@@ -236,6 +236,10 @@ function sanitizeTask(task): void {
|
||||
break;
|
||||
|
||||
case "refreshObject":
|
||||
if (typeof task.objectName !== "string")
|
||||
throw new Error("Missing 'objectName' property");
|
||||
break;
|
||||
|
||||
case "deleteObject":
|
||||
if (typeof task.objectName !== "string" || !task.objectName.length)
|
||||
throw new Error("Missing 'objectName' property");
|
||||
|
||||
Reference in new issue
Block a user