From e4713e6ea3bdda3a9ec0c7582a485ba1774f6228 Mon Sep 17 00:00:00 2001 From: Up Date: Wed, 15 May 2024 04:08:42 +0200 Subject: [PATCH] fall back to legacy save ID --- api/endpoints.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/endpoints.go b/api/endpoints.go index 4d80a42..2cf8bcb 100644 --- a/api/endpoints.go +++ b/api/endpoints.go @@ -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) return } + if data.ClientSessionId == "" { + data.ClientSessionId = legacyClientSessionId + } var active bool active, err = db.IsActiveSession(uuid, data.ClientSessionId)