From 8d7e9d8ca1d6c940944817dc04dea693494b30fa Mon Sep 17 00:00:00 2001 From: milky0217 Date: Tue, 26 May 2026 15:08:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20notifications=E6=9F=A5=E8=AF=A2type?= =?UTF-8?q?=E5=88=97=E5=88=AB=E5=90=8D=E4=B8=8Esqlx=20rename=E5=86=B2?= =?UTF-8?q?=E7=AA=81=E5=AF=BC=E8=87=B4500?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/handlers/notifications.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handlers/notifications.rs b/src/handlers/notifications.rs index 2990201..bfe24ed 100644 --- a/src/handlers/notifications.rs +++ b/src/handlers/notifications.rs @@ -45,7 +45,7 @@ pub async fn list_notifications( let rows = sqlx::query_as::<_, crate::models::Notification>( r#" - SELECT id, scope, user_id, type AS type_, title, content, priority, link, + SELECT id, scope, user_id, type, title, content, priority, link, is_read, created_at, expires_at FROM notifications WHERE scope = 'all' OR (scope = 'user' AND user_id = $1)