fuck sqlx

This commit is contained in:
Tanner Sommers 2024-11-25 19:46:03 -06:00
parent fc13feade9
commit 4d2d0c1101
2 changed files with 3 additions and 3 deletions

View File

@ -122,7 +122,7 @@ impl DatabaseController {
username: q.username, username: q.username,
quote: q.quote, quote: q.quote,
added_by: q.added_by, added_by: q.added_by,
added_at: q.added_at, added_at: q.added_at.unwrap(),
})), })),
Err(sqlx::Error::RowNotFound) => Ok(None), Err(sqlx::Error::RowNotFound) => Ok(None),
Err(e) => Err(e), Err(e) => Err(e),
@ -142,7 +142,7 @@ impl DatabaseController {
username: q.username, username: q.username,
quote: q.quote, quote: q.quote,
added_by: q.added_by, added_by: q.added_by,
added_at: q.added_at, added_at: q.added_at.unwrap(),
}); });
} }

View File

@ -7,5 +7,5 @@ pub struct Quote {
pub username: String, pub username: String,
pub quote: String, pub quote: String,
pub added_by: i64, pub added_by: i64,
pub added_at: Option<OffsetDateTime>, pub added_at: OffsetDateTime,
} }