From e8d467217679c643cf359c1e698eaf99e22fe4af Mon Sep 17 00:00:00 2001 From: philipp Date: Thu, 30 May 2024 11:34:01 +0200 Subject: [PATCH] try --- src/model/notification.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model/notification.rs b/src/model/notification.rs index d3bcd81..b535aae 100644 --- a/src/model/notification.rs +++ b/src/model/notification.rs @@ -21,7 +21,7 @@ pub struct Notification { impl Notification { pub async fn find_by_id(db: &SqlitePool, id: i64) -> Option { - sqlx::query_as!(Self, "SELECT * FROM notification WHERE id like ?", id) + sqlx::query_as!(Self, "SELECT id, user_id, message, read_at, created_at, category, link, action_after_reading FROM notification WHERE id like ?", id) .fetch_one(db) .await .ok()