mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-05-19 19:39:54 +08:00
forgot to save pending update
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user