Skip to content

Commit

Permalink
video: Use size of the temporary video chunks DB instead of the actua…
Browse files Browse the repository at this point in the history
…l video DB
  • Loading branch information
rafaellehmkuhl committed Feb 21, 2024
1 parent d4fdba6 commit 291840e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stores/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ export const useVideoStore = defineStore('video', () => {

const temporaryVideoDBSize = async (): Promise<number> => {
let totalSizeBytes = 0
await videoStoringDB.iterate((chunk) => {
await tempVideoChunksDB.iterate((chunk) => {
totalSizeBytes += (chunk as Blob).size
})
return totalSizeBytes
Expand Down

0 comments on commit 291840e

Please sign in to comment.