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 authored and patrickelectric committed Feb 22, 2024
1 parent 4f01e8c commit d5b080b
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 @@ -278,7 +278,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 d5b080b

Please sign in to comment.