Can call uninstall as long as no task is active

This commit is contained in:
Girish Ramakrishnan
2019-09-23 13:32:52 -07:00
parent 38a0cdc0be
commit 70a1ef1af3
+1 -1
View File
@@ -460,7 +460,7 @@ function setTask(appId, values, callback) {
assert.strictEqual(typeof callback, 'function');
if (values.installationState === 'pending_uninstall') { // FIXME
updateWithConstraints(appId, values, 'AND taskId IS NULL AND installationState = "error"', callback);
updateWithConstraints(appId, values, 'AND taskId IS NULL', callback);
} else {
updateWithConstraints(appId, values, 'AND taskId IS NULL AND installationState != "error"', callback);
}