fix: convert to surrealdb datetime before conversion

This commit is contained in:
Per Stark
2025-10-03 15:33:21 +02:00
parent e5e1414f54
commit 1159712724

View File

@@ -109,7 +109,7 @@ impl User {
)
.bind(("table", T::table_name()))
.bind(("user_id", user_id.to_string()))
.bind(("since", since))
.bind(("since", surrealdb::Datetime::from(since)))
.await?
.take(0)?;
Ok(result.map(|r| r.count).unwrap_or(0))