fix chats fetcher
This commit is contained in:
parent
ae36bcbb4e
commit
d9f03f61ae
1 changed files with 2 additions and 2 deletions
|
|
@ -40,8 +40,8 @@ export const useChatsStore = defineStore('chats', {
|
|||
useStreamingStore().addSubscriber(socket)
|
||||
},
|
||||
startFetching() {
|
||||
this.fetcher = () => promiseInterval(() => this.fetchChats(), 5000)
|
||||
this.fetcher()
|
||||
this.fetcher = promiseInterval(() => this.fetchChats(), 5000)
|
||||
this.fetchChats()
|
||||
},
|
||||
stopFetching() {
|
||||
this.fetcher?.stop()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue