forgot to save pending update

This commit is contained in:
Geoffrey Goh
2015-11-25 16:39:06 -08:00
parent 92e0a603d7
commit 1d0581b0dc

View File

@@ -354,6 +354,9 @@ RCT_EXPORT_METHOD(installUpdate:(NSDictionary*)updatePackage
if (error) {
reject(error);
} else {
[self savePendingUpdate:updatePackage[@"packageHash"]
rollbackTimeout:rollbackTimeout];
if (installMode == CodePushInstallModeImmediate) {
[self restartPendingUpdate];
} else if (installMode == CodePushInstallModeOnNextResume) {