fuck sqlx
This commit is contained in:
parent
fc13feade9
commit
4d2d0c1101
@ -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(),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user