refactor: tighten backend and logic boundaries

This commit is contained in:
Hide_D committed 2026-08-15 06:46:52 +00:00
1 parent 7b02ff155f
commit 35d8824b95
86 files changed
+820 -1872

No files matched your search

+1 -1
View File
@@ -37,7 +37,7 @@ const findCurrentEntryIndex = (minuteOfDay: number, entries: TurnScheduleEntries
const getEntryAt = (entries: TurnScheduleEntries, index: number): TurnScheduleEntry =>
entries[Math.max(0, Math.min(entries.length - 1, index))] ?? entries[0];
export const getTickMinutesAt = (date: Date, schedule: TurnSchedule): number => {
const getTickMinutesAt = (date: Date, schedule: TurnSchedule): number => {
const entries = normalizeEntries(schedule.entries);
const minuteOfDay = toMinuteOfDay(date);
const index = findCurrentEntryIndex(minuteOfDay, entries);