rework external order tracking system

This commit is contained in:
Matthias Hochmeister
2026-03-25 13:24:52 +01:00
parent e02ada8b95
commit 561334791b
7 changed files with 148 additions and 44 deletions

View File

@@ -58,8 +58,8 @@ export const bestellungApi = {
deleteOrder: async (id: number): Promise<void> => {
await api.delete(`/api/bestellungen/${id}`);
},
updateStatus: async (id: number, status: string): Promise<Bestellung> => {
const r = await api.patch(`/api/bestellungen/${id}/status`, { status });
updateStatus: async (id: number, status: string, force?: boolean): Promise<Bestellung> => {
const r = await api.patch(`/api/bestellungen/${id}/status`, { status, force: force || undefined });
return r.data.data;
},