fix docker deployment

This commit is contained in:
Alberto-Audrix committed 2026-09-11 14:48:18 +07:00
1 parent ded52d1ece
commit fb0f996776
17 files changed
+49 -18

No files matched your search

+3 -1
View File
@@ -38,7 +38,9 @@ function stockAkhirByDate(
const manualByDate = new Map(manualInputs.map((m) => [m.date, m]));
const lastCycleDay = Math.max(0, (cycle.total_days || 1) - 1);
const endDay = cycleDayForDate(cycle.start_date, cycle.end_date);
const endDay = cycle.end_date
? cycleDayForDate(cycle.start_date, cycle.end_date)
: lastCycleDay;
const maxDay = Math.min(lastCycleDay, endDay);
const result = new Map<string, number>();