Skip to content
This repository has been archived by the owner on Apr 13, 2024. It is now read-only.

Commit

Permalink
cal api fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DCRepublic committed Mar 31, 2024
1 parent 0b0f8e3 commit 8a158ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/api/cal/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ export async function GET(request) {
let dotw = [];
if (thing.dotw) {
for (const dow of thing.dotw) {
dotw.push(days.indexOf(dow));
if (days.includes(dow)) {
dotw.push(days.indexOf(dow));
}
}
}

Expand Down

0 comments on commit 8a158ab

Please sign in to comment.