Skip to content

Commit

Permalink
clear auditory stat per each iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
Egor Danilenko committed Feb 20, 2024
1 parent 55fe08b commit 89d0e0e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/store/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export const useChannelStore = defineStore('channelStore',{
channelEntity.dvrMinutes = 0;
channelEntity.liveMinutes = 0;
})
this.dayStats = [];
},

init({enabled}:{enabled:boolean}):void{
Expand All @@ -101,6 +102,7 @@ export const useChannelStore = defineStore('channelStore',{
});
},
async fillDay(value:Date, provider: Provider|null = null):Promise<number>{
this.getChannelsDayStat(value).auditory = 0;
return new Promise((resolve)=>{
accountStatService.query(
{
Expand Down

0 comments on commit 89d0e0e

Please sign in to comment.