mirror of
https://github.com/Xevion/bus-reminder.git
synced 2025-12-16 04:11:22 -06:00
Prevent cron monitor calls outside production, improve thrown error messages/API response
This commit is contained in:
@@ -215,7 +215,6 @@ export async function getMatchingTime(
|
||||
): Promise<TimeConfig | null> {
|
||||
const times = config.times.filter((time) => {
|
||||
// If the day doesn't match, skip.
|
||||
console.log(dayAsNumber[now.getDay().toString()]);
|
||||
if (!time.days.has(dayAsNumber[now.getDay().toString()])) return false;
|
||||
|
||||
const startTime = time.time;
|
||||
|
||||
Reference in New Issue
Block a user