From 1159712724c5ff7715ea210a3fe2f70b1637674e Mon Sep 17 00:00:00 2001 From: Per Stark Date: Fri, 3 Oct 2025 15:33:21 +0200 Subject: [PATCH] fix: convert to surrealdb datetime before conversion --- common/src/storage/types/user.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/storage/types/user.rs b/common/src/storage/types/user.rs index f7f140c..28962c8 100644 --- a/common/src/storage/types/user.rs +++ b/common/src/storage/types/user.rs @@ -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))