fix: use PATCH for vehicle type update and correct permission check in FahrzeugEinstellungen
This commit is contained in:
@@ -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;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user