feat: gacha roll

This commit is contained in:
Maulana Sodiqin
2025-03-19 05:34:39 +07:00
parent 12043f027c
commit f9c49d44b5
7 changed files with 25 additions and 9 deletions
+6 -1
View File
@@ -61,7 +61,12 @@ impl<'a> AuthRepository<'a> {
let db = &self.state.surrealdb;
let record: Option<UsersItemDto> = db
.create((ResourceEnum::Users.to_string(), &data.email))
.content(data)
.content(UsersSchema {
fullname: data.fullname.clone(),
email: data.email.clone(),
password: data.password.clone(),
is_active: false,
})
.await?;
match record {
Some(_) => Ok("Success create user".into()),