return config correctly

This commit is contained in:
Girish Ramakrishnan
2016-06-13 18:04:22 -07:00
parent 2bd6519795
commit 942339435a

View File

@@ -675,7 +675,7 @@ function restore(appId, data, auditSource, callback) {
if (error) return callback(new AppsError(AppsError.INTERNAL_ERROR, error));
// for empty or null backupId, use existing manifest to mimic a reinstall
var func = data.backupId ? backups.getRestoreConfig.bind(null, data.backupId) : function (next) { return next(null, app.manifest); };
var func = data.backupId ? backups.getRestoreConfig.bind(null, data.backupId) : function (next) { return next(null, { manifest: app.manifest }); };
func(function (error, restoreConfig) {
if (error) return callback(new AppsError(AppsError.INTERNAL_ERROR, error));