commit 96ef9f8c1af7f1ea471a4e67ace82c0540a1fdcb
parent 3e97d42c379cf3e9efbcfb4a2a5a2bf6eaabc908
Author: Katja (ctucx) <git@ctu.cx>
Date: Sun, 19 Jan 2025 15:42:20 +0100
parent 3e97d42c379cf3e9efbcfb4a2a5a2bf6eaabc908
Author: Katja (ctucx) <git@ctu.cx>
Date: Sun, 19 Jan 2025 15:42:20 +0100
canvas: only fetch coach-sequences for db-profile
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/canvas.js b/src/canvas.js @@ -87,7 +87,7 @@ export const setupCanvas = (data, isUpdate) => { for (const leg of journey.legs) { if (!leg.line) continue; const [category, number] = leg.line.name.split(" "); - await cachedCoachSequence(category, leg.line.fahrtNr || number, leg.origin.id, leg.plannedDeparture); + if (data.profile === "db") await cachedCoachSequence(category, leg.line.fahrtNr || number, leg.origin.id, leg.plannedDeparture); setupCanvas(null, true); } }