Rename stores method which fetch fresh api data

This commit is contained in:
Bubka
2023-10-27 15:19:33 +02:00
parent 40ea767799
commit 4fd5559e5f
4 changed files with 6 additions and 6 deletions

View File

@ -22,10 +22,10 @@ export const useGroups = defineStore({
actions: {
/**
* Refreshes the groups collection using the backend
* Fetches the groups collection from the backend
*/
refresh() {
groupService.getAll().then(response => {
async fetch() {
await groupService.getAll().then(response => {
this.items = response.data
})
},