Archive
There is now an archive for tickets
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user