Compare commits

..

No commits in common. "145892104b5c4cc91fc766fc6734536af261ada4" and "6c0f0e6b04b0258ac7ffb9720f30d657d82b18eb" have entirely different histories.

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 id, user_id, message, read_at, created_at, category, link, action_after_reading FROM notification WHERE id like ?", id)
sqlx::query_as!(Self, "SELECT * FROM notification WHERE id like ?", id)
.fetch_one(db)
.await
.ok()