From 8a17845d4209b47385f5da249f32e47be8abf361 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Tue, 30 Apr 2024 15:11:01 -0400 Subject: [PATCH] Revert "Fix underlying issue with save override prevention" This reverts commit c12c7708442eac8e2287f783a62b209b71a24aa4. --- api/endpoints.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/endpoints.go b/api/endpoints.go index 5a2b289..bc6eb25 100644 --- a/api/endpoints.go +++ b/api/endpoints.go @@ -223,7 +223,7 @@ func handleSaveData(w http.ResponseWriter, r *http.Request) { } var active bool - if r.URL.Path == "/savedata/get" && datatype == 0 { + if r.URL.Path == "/savedata/get" { err = db.UpdateActiveSession(uuid, token) if err != nil { httpError(w, r, fmt.Errorf("failed to update active session: %s", err), http.StatusBadRequest)