fix: change GET /teams endpoint

This commit is contained in:
2026-06-18 01:07:19 +02:00 Unverified
parent e75aa2b173
commit 83aa3baddb
2 changed files with 14 additions and 9 deletions
+2 -1
View File
@@ -8,8 +8,9 @@ definePageMeta({
useHead({ title: 'Categorie e Team - Admin' })
const { createCategory, updateCategory, deleteCategory, getTeams, createTeam, updateTeam, deleteTeam, getAreas } = useAdmin()
const { createCategory, updateCategory, deleteCategory, createTeam, updateTeam, deleteTeam, getAreas } = useAdmin()
const { getCategories } = useReports()
const { getTeams } = useOperator()
const { data: categoriesRes, refresh: refreshCategories } = await useAsyncData('report-categories-admin-view', () => getCategories())
const { data: teamsRes, refresh: refreshTeams } = await useAsyncData('admin-teams', () => getTeams())