Revert "Fix underlying issue with save override prevention"

This reverts commit c12c770844.
oauth2
Flashfyre 2024-04-30 15:11:01 -04:00
parent c12c770844
commit 8a17845d42
1 changed files with 1 additions and 1 deletions

View File

@ -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)