Skip to content

Commit

Permalink
fix: effectively take snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker committed Nov 29, 2024
1 parent 187c9f8 commit c9ee2ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/admin/src/handlers/upgrade.handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const upgrade = async ({
try {
// 3. We take a snapshot - create a backup - unless the dev opted-out
const snapshot = async () =>
takeSnapshot ? Promise.resolve() : await createSnapshot({canisterId, actor});
takeSnapshot ? await createSnapshot({canisterId, actor}) : Promise.resolve();
await execute({fn: snapshot, onProgress, step: UpgradeCodeProgressStep.TakingSnapshot});

// 4. Upgrading code: If the WASM is > 2MB we proceed with the chunked installation otherwise we use the original single chunk installation method.
Expand Down

0 comments on commit c9ee2ff

Please sign in to comment.