diff --git a/src/stores/video.ts b/src/stores/video.ts index be08eafda..f68e53e99 100644 --- a/src/stores/video.ts +++ b/src/stores/video.ts @@ -268,11 +268,11 @@ export const useVideoStore = defineStore('video', () => { // Used to clear the temporary video database const clearTemporaryVideoDB = async (): Promise => { 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) } }