feat : sauvegarde01 partie 2

This commit is contained in:
2026-02-10 16:01:40 +01:00
parent f12f56cb43
commit df12cce54c
7 changed files with 106 additions and 3 deletions

View File

@@ -16,5 +16,8 @@ export async function createWeight(payload: WeightPayload) {
export async function updateWeight(id: number, payload: Partial<WeightPayload>) {
const api = useApi()
return api.patch<WeightEntryData>(`weights/${id}`, payload)
return api.patch<WeightEntryData>(`weights/${id}`, payload,{
toastErrorKey: 'errors.weight.update',
toastSuccessKey: 'success.weight.update'
})
}