fix: use PATCH for vehicle type update and correct permission check in FahrzeugEinstellungen

This commit is contained in:
Matthias Hochmeister
2026-03-28 17:30:40 +01:00
parent 6b46e97eb6
commit 534a24edbf
2 changed files with 2 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ export const fahrzeugTypenApi = {
},
update: async (id: number, data: Partial<FahrzeugTyp>): Promise<FahrzeugTyp> => {
const r = await api.put(`/api/fahrzeug-typen/${id}`, data);
const r = await api.patch(`/api/fahrzeug-typen/${id}`, data);
return r.data.data;
},