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)
|
useStreamingStore().addSubscriber(socket)
|
||||||
},
|
},
|
||||||
startFetching() {
|
startFetching() {
|
||||||
this.fetcher = () => promiseInterval(() => this.fetchChats(), 5000)
|
this.fetcher = promiseInterval(() => this.fetchChats(), 5000)
|
||||||
this.fetcher()
|
this.fetchChats()
|
||||||
},
|
},
|
||||||
stopFetching() {
|
stopFetching() {
|
||||||
this.fetcher?.stop()
|
this.fetcher?.stop()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue