api change

This commit is contained in:
2025-11-12 02:24:31 +01:00
parent b987bdacfe
commit 5653828ff3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -184,7 +184,7 @@ const AppStateProvider = ({ children }) => {
} }
try { try {
const { data } = await api.get('/auth/tenants'); const { data } = await api.get('/tenants');
if (!abort) { if (!abort) {
dispatch({ dispatch({
type: 'SET_TENANTS', type: 'SET_TENANTS',
@@ -30,7 +30,7 @@ const useTenantManager = ({
} }
if (refreshOnly) { if (refreshOnly) {
const { data } = await apiClient.get('/auth/tenants'); const { data } = await apiClient.get('/tenants');
appDispatch({ appDispatch({
type: 'SET_TENANTS', type: 'SET_TENANTS',
tenants: Array.isArray(data?.tenants) ? data.tenants : [], tenants: Array.isArray(data?.tenants) ? data.tenants : [],