Skip to content

Commit

Permalink
feat: last conversion version
Browse files Browse the repository at this point in the history
  • Loading branch information
112batuhan committed Dec 9, 2024
1 parent 2579fdd commit e02c339
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions src/conversion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,18 +65,14 @@ pub struct User {
}

fn default_groups() -> Vec<Group> {
vec![Group {
colour: Some("#fa3703".to_string()),
name: "Nomination Assessment Team".to_string(),
short_name: "NAT".to_string(),
}]
vec![]
}
fn default_previous_name() -> Vec<String> {
vec!["test".to_string()]
vec![]
}

fn default_country_name() -> String {
"North Korea".to_string()
"".to_string()
}

#[derive(Serialize, Deserialize, Debug, Clone)]
Expand Down
2 changes: 1 addition & 1 deletion src/database/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl DatabaseClient {
.expect("Missing SURREAL_PASS envrionment variable"),
})
.await?;
client.use_ns("test").use_db("test").await?;
client.use_ns("prod").use_db("prod").await?;
Ok(Arc::new(DatabaseClient { db: client }))
}
pub fn get_inner_ref(&self) -> &Surreal<Client> {
Expand Down

0 comments on commit e02c339

Please sign in to comment.