new features
This commit is contained in:
@@ -197,8 +197,8 @@ async function createOrder(data: { bezeichnung: string; lieferant_id?: number; b
|
||||
}
|
||||
}
|
||||
|
||||
await logAction(order.id, 'Bestellung erstellt', `Bestellung "${data.bezeichnung}" erstellt`, userId);
|
||||
await client.query('COMMIT');
|
||||
await logAction(order.id, 'Bestellung erstellt', `Bestellung "${data.bezeichnung}" erstellt`, userId);
|
||||
return order;
|
||||
} catch (error) {
|
||||
await client.query('ROLLBACK');
|
||||
|
||||
Reference in New Issue
Block a user