This commit is contained in:
parent
c249de3a82
commit
578ed1373b
@ -327,7 +327,7 @@ pub async fn clear(
|
||||
db: &State<DBPool>,
|
||||
action: &State<ASender<Action>>,
|
||||
) -> String {
|
||||
let action = lock().unwrap();
|
||||
let action = action.lock().unwrap();
|
||||
let r = action.send(Action::Clear);
|
||||
if r.is_err() || r.ok().is_none() {
|
||||
return get_error_message("Something went wrong");
|
||||
|
Loading…
Reference in New Issue
Block a user