Prevent cron monitor calls outside production, improve thrown error messages/API response

This commit is contained in:
Xevion
2023-02-25 00:14:13 -06:00
parent 891a767d6f
commit de18ce26f2
3 changed files with 105 additions and 79 deletions

View File

@@ -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;