|
|
@ -224,10 +224,12 @@ func handleSaveData(w http.ResponseWriter, r *http.Request) {
|
|
|
|
|
|
|
|
|
|
|
|
var active bool
|
|
|
|
var active bool
|
|
|
|
if r.URL.Path == "/savedata/get" {
|
|
|
|
if r.URL.Path == "/savedata/get" {
|
|
|
|
err = db.UpdateActiveSession(uuid, token)
|
|
|
|
if datatype == 0 {
|
|
|
|
if err != nil {
|
|
|
|
err = db.UpdateActiveSession(uuid, token)
|
|
|
|
httpError(w, r, fmt.Errorf("failed to update active session: %s", err), http.StatusBadRequest)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
httpError(w, r, fmt.Errorf("failed to update active session: %s", err), http.StatusBadRequest)
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
active, err = db.IsActiveSession(token)
|
|
|
|
active, err = db.IsActiveSession(token)
|
|
|
|