fall back to legacy save ID

master
Up 2024-05-15 04:08:42 +02:00
parent 2aab022ce3
commit e4713e6ea3
No known key found for this signature in database
GPG Key ID: 3B75CD7439FEB388
1 changed files with 3 additions and 0 deletions

View File

@ -591,6 +591,9 @@ func handleUpdateAll(w http.ResponseWriter, r *http.Request) {
httpError(w, r, fmt.Errorf("failed to decode request body: %s", err), http.StatusBadRequest) httpError(w, r, fmt.Errorf("failed to decode request body: %s", err), http.StatusBadRequest)
return return
} }
if data.ClientSessionId == "" {
data.ClientSessionId = legacyClientSessionId
}
var active bool var active bool
active, err = db.IsActiveSession(uuid, data.ClientSessionId) active, err = db.IsActiveSession(uuid, data.ClientSessionId)