Allow refreshObject task on root param

This commit is contained in:
Zaid Abdulla committed 2020-09-15 12:50:02 -07:00
1 parent de65ca0921
commit 328bfa03e0
1 file changed
+4
+4
View File
@@ -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");