Fix crash in setUpdateSuccess

This commit is contained in:
Girish Ramakrishnan
2019-09-04 16:11:17 -07:00
parent e66961b814
commit e3964fd710
+1 -1
View File
@@ -117,7 +117,7 @@ function setUpdateSuccess(callback) {
if (error) return callback(new CloudronError(CloudronError.INTERNAL_ERROR, error));
if (results.length !== 1) return callback(); // when hotfixing
tasks.update(results[0].id, { percent: 100, errorMessage: null }, function (error) {
tasks.update(results[0].id, { percent: 100, error: null }, function (error) {
if (error) return callback(new CloudronError(CloudronError.INTERNAL_ERROR, error));
callback();