BETA Fix4 changes

This commit is contained in:
Abraham 2023-04-28 19:05:35 +05:00
parent f88248643b
commit 2c2f0e71fd
38 changed files with 40 additions and 23 deletions

View file

@ -2,11 +2,11 @@ use crate::DB;
#[tauri::command]
pub fn db_read(key: &str) -> String {
if let Some(value) = DB.lock().unwrap().get(key) {
value
} else {
String::from("")
if let Some(value) = DB.lock().unwrap().get::<String>(key) {
return value
}
String::from("")
}
#[tauri::command]