From 7189a98babf3af3991e3b4a1f8f7988a197185cc Mon Sep 17 00:00:00 2001 From: OE6DXD Date: Mon, 16 Mar 2026 12:00:00 +0100 Subject: [PATCH] fix manual station deactivate staying active under reservations Stop auto-activating reservation slots immediately after a manual station release. This ensures the 'Station deaktivieren' action actually leaves the station deactivated, while reservation ownership remains intact until the user deletes the reservation. --- server/index.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/server/index.js b/server/index.js index 3d9c7b1..68f9430 100644 --- a/server/index.js +++ b/server/index.js @@ -2875,12 +2875,7 @@ async function handleStationRelease(res, user) { }; await writeJson(files.station, runtime.station); await appendAudit("station.deactivate", user, null); - const autoActivated = await autoActivateReservationSlotIfNeededUnlocked({ - excludeUserId: user && user.id ? String(user.id) : "" - }); - if (!autoActivated) { - broadcastEvent("station.status.changed", buildStationStatusView()); - } + broadcastEvent("station.status.changed", buildStationStatusView()); return sendJson(res, 200, { ok: true, status: buildStationStatusView() }); }); }