wrong fetcher

This commit is contained in:
Henry Jameson 2026-06-23 20:15:47 +03:00
commit ee42d4095a
2 changed files with 4 additions and 4 deletions

View file

@ -27,8 +27,8 @@ export const useBookmarkFoldersStore = defineStore('bookmarkFolders', {
}, },
actions: { actions: {
startFetching() { startFetching() {
promiseInterval(() => { this.fetcher = promiseInterval(() => {
this.fetcher = fetchBookmarkFolders({ fetchBookmarkFolders({
credentials: useOAuthStore().token, credentials: useOAuthStore().token,
}) })
.then(({ data: folders }) => this.setBookmarkFolders(folders)) .then(({ data: folders }) => this.setBookmarkFolders(folders))

View file

@ -34,8 +34,8 @@ export const useListsStore = defineStore('lists', {
}, },
actions: { actions: {
startFetching() { startFetching() {
promiseInterval(() => { this.fetcher = promiseInterval(() => {
this.fetcher = fetchLists({ fetchLists({
credentials: useOAuthStore().token, credentials: useOAuthStore().token,
}) })
.then(({ data: lists }) => this.setLists(lists)) .then(({ data: lists }) => this.setLists(lists))