rework external order tracking system
This commit is contained in:
@@ -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;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user