Skip to content

Commit

Permalink
fix(cloudsync): to apply deleted-data on outdated case
Browse files Browse the repository at this point in the history
  • Loading branch information
gre committed Jul 16, 2024
1 parent ad8616c commit da584fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libs/live-wallet/src/cloudsync/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export class CloudSyncSDK<Schema extends ZodType, Data = z.infer<Schema>> {
// no data, nothing to do
const version = this.getCurrentVersion();
if (version) {
await this.saveNewUpdate({ type: "deleted-data" });
throw new TrustchainOutdated();
}
break;
Expand Down

0 comments on commit da584fa

Please sign in to comment.