mirror of
https://git.dirksys.ovh/dirk/bankserver.git
synced 2025-12-20 11:09:21 +01:00
fix column name of created field in chats table
This commit is contained in:
parent
6e9f12c97b
commit
cce43c155e
@ -48,7 +48,7 @@ impl From<Row> for Chat {
|
|||||||
fn from(value: Row) -> Self {
|
fn from(value: Row) -> Self {
|
||||||
Self {
|
Self {
|
||||||
id: value.get("id"),
|
id: value.get("id"),
|
||||||
created: value.get("created_at"),
|
created: value.get("created"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -56,7 +56,7 @@ impl From<Row> for ChatInfo {
|
|||||||
fn from(value: Row) -> Self {
|
fn from(value: Row) -> Self {
|
||||||
Self {
|
Self {
|
||||||
id: value.get("id"),
|
id: value.get("id"),
|
||||||
created: value.get("created_at"),
|
created: value.get("created"),
|
||||||
read_until: value.get("read_until"),
|
read_until: value.get("read_until"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user