Datenbank geändert

This commit is contained in:
2026-02-27 14:12:21 +00:00
parent 53124c1c78
commit 064036a74e
7 changed files with 12 additions and 14 deletions

View File

@@ -15,7 +15,7 @@ export async function PUT(
const pool = getDbPool();
const query = `
UPDATE Ausgaben_Tag
UPDATE Ausgaben
SET Datum = ?, WochTag = ?, Wo = ?, Was = ?, Wieviel = ?, Wie = ?, OK = ?
WHERE ID = ?
`;
@@ -59,7 +59,7 @@ export async function DELETE(
const { id } = await context.params;
const pool = getDbPool();
const query = 'DELETE FROM Ausgaben_Tag WHERE ID = ?';
const query = 'DELETE FROM Ausgaben WHERE ID = ?';
const [result] = await pool.query<ResultSetHeader>(query, [parseInt(id)]);
if (result.affectedRows === 0) {