add UI tests for welcome and unlock flows
This commit is contained in:
1 parent
5999aba0a5
commit
b2a7e5759a
9 files changed
+1003
-59
No files matched your search
+2
-1
@@ -13,7 +13,8 @@ impl Db {
|
||||
pub fn save_private_config(&self, config: &PrivateConfig) -> Result<(), CreddyError> {
|
||||
let json = serde_json::to_string(&config)?;
|
||||
let conn = self.connection.lock().unwrap();
|
||||
conn.execute("INSERT INTO config VALUES (?);", [&json])?;
|
||||
// the migration seeds the only row, so this is always an update
|
||||
conn.execute("UPDATE config SET value = ?;", [&json])?;
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user