Merge pull request 'try' (#563) from better-text into staging

Reviewed-on: Ruderverein-Donau-Linz/rowt#563
This commit is contained in:
philipp 2024-05-30 11:34:29 +02:00
commit 145892104b

View File

@ -21,7 +21,7 @@ pub struct Notification {
impl Notification {
pub async fn find_by_id(db: &SqlitePool, id: i64) -> Option<Self> {
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()