Skip to content

Commit

Permalink
fix(migration): clear saved posts before migrating
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Dec 17, 2023
1 parent bf60737 commit 3d4a4ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions assets/js/BackupHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ export async function migrateOldVersionState(): Promise<void> {
return newSavedPost
})

await posts.clear()

await posts.bulkAdd(oldSavedPostsAsNewSavedPosts)
}

Expand Down

0 comments on commit 3d4a4ef

Please sign in to comment.