mirror of
https://github.com/perstarkse/minne.git
synced 2026-07-16 09:42:58 +02:00
fix: convert to surrealdb datetime before conversion
This commit is contained in:
@@ -109,7 +109,7 @@ impl User {
|
|||||||
)
|
)
|
||||||
.bind(("table", T::table_name()))
|
.bind(("table", T::table_name()))
|
||||||
.bind(("user_id", user_id.to_string()))
|
.bind(("user_id", user_id.to_string()))
|
||||||
.bind(("since", since))
|
.bind(("since", surrealdb::Datetime::from(since)))
|
||||||
.await?
|
.await?
|
||||||
.take(0)?;
|
.take(0)?;
|
||||||
Ok(result.map(|r| r.count).unwrap_or(0))
|
Ok(result.map(|r| r.count).unwrap_or(0))
|
||||||
|
|||||||
Reference in New Issue
Block a user