refactor: user can no longer fetch activities manually
This commit is contained in:
1 parent
da7a729321
commit
e8e7c4f642
2 files changed
+2
-6
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import {activityApi, characterApi} from "@/mammon";
|
||||
import {characterApi} from "@/mammon";
|
||||
import {defineStore} from "pinia";
|
||||
import {ref} from "vue";
|
||||
import {CharacterResponse} from "@/generated/mammon";
|
||||
@@ -18,11 +18,9 @@ export const useCharactersStore = defineStore('characters', () => {
|
||||
return character;
|
||||
}
|
||||
|
||||
const reloadActivities = (characterId: number): Promise<void> => activityApi.fetchNewActivitiesForCharacter(characterId) as Promise<void>;
|
||||
|
||||
const refresh = () => characterApi.findAllCharacters().then(response => characters.value = response.data);
|
||||
|
||||
refresh();
|
||||
|
||||
return {characters, findById, reloadActivities};
|
||||
return {characters, findById};
|
||||
})
|
||||
Reference in new issue
Block a user