Remove dead code

This commit is contained in:
Ethan O'Brien
2024-02-26 20:50:11 -06:00
parent 510b948bda
commit f6cf70ab9f
10 changed files with 22 additions and 37 deletions

View File

@@ -9,12 +9,11 @@ pub fn tutorial(req: HttpRequest, body: String) -> HttpResponse {
let body = json::parse(&encryption::decrypt_packet(&body).unwrap()).unwrap();
let blank_header = HeaderValue::from_static("");
let key = req.headers().get("a6573cbe").unwrap_or(&blank_header).to_str().unwrap_or("");
let uid = req.headers().get("aoharu-user-id").unwrap_or(&blank_header).to_str().unwrap_or("");
let mut user = userdata::get_acc(key, uid);
let mut user = userdata::get_acc(key);
user["tutorial_step"] = body["step"].clone();
userdata::save_acc(key, uid, user);
userdata::save_acc(key, user);
let resp = object!{
"code": 0,