Skip to content

Commit

Permalink
video: Remove temporary video chunks instead of the actual video reco…
Browse files Browse the repository at this point in the history
…rdings
  • Loading branch information
rafaellehmkuhl authored and patrickelectric committed Feb 22, 2024
1 parent a6028a6 commit 4f01e8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stores/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,11 @@ export const useVideoStore = defineStore('video', () => {
// Used to clear the temporary video database
const clearTemporaryVideoDB = async (): Promise<void> => {
const tempChunks: string[] = []
await videoStoringDB.iterate((_, name) => {
await tempVideoChunksDB.iterate((_, name) => {
tempChunks.push(name)
})
for (const chunk of tempChunks) {
await videoStoringDB.removeItem(chunk)
await tempVideoChunksDB.removeItem(chunk)
}
}

Expand Down

0 comments on commit 4f01e8c

Please sign in to comment.