better-text #564

Merged
philipp merged 3 commits from better-text into main 2024-05-30 11:52:18 +02:00
Showing only changes of commit e8d4672176 - Show all commits

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()