There is now an archive for tickets
This commit is contained in:
2026-05-11 20:46:06 +02:00
parent d9ef5746a2
commit 6eb84d24e0
5 changed files with 146 additions and 3 deletions

View File

@@ -133,7 +133,7 @@ pub async fn get_tickets(
r#"SELECT t.id, t.category, t.betreff, t.description, t.room, t.status, t.date, t.user_id, u.first_name, u.last_name
FROM tickets t
LEFT JOIN users u ON t.user_id = u.id
WHERE t.status <> 'Archived' ORDER BY t.date DESC"#,
ORDER BY t.date DESC"#,
)
.fetch_all(&data.db)
.await