Migrate legacy remote session schema

This commit is contained in:
benya
2026-06-04 16:40:50 +03:00
parent 02c3513f7e
commit 959a70b6d2
3 changed files with 93 additions and 3 deletions
+6
View File
@@ -887,6 +887,12 @@ func (a *App) handleListRemoteSessions(w http.ResponseWriter, r *http.Request) {
limit, _ := strconv.Atoi(r.URL.Query().Get("limit"))
sessions, found, err := a.store.ListRemoteSessions(r.Context(), deviceID, store.RemoteSessionListOptions{Limit: limit})
if err != nil {
logStructured(map[string]any{
"event": "remote_sessions.list_failed",
"request_id": requestID(r.Context()),
"device_id": deviceID,
"error": err.Error(),
})
writeError(w, http.StatusInternalServerError, "failed to load remote sessions")
return
}