Skip to content

Commit

Permalink
add trhow back and 35
Browse files Browse the repository at this point in the history
  • Loading branch information
qweliant committed May 22, 2024
1 parent d6d6dec commit 546ecd0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/prisma/exampleCommunitySeeds/unjournal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ export default async function main(prisma: PrismaClient, communityUUID: string)
},
titleFieldSlug: "unjournal:title",
evaluatorFieldSlug: "unjournal:evaluator",
deadlineLength: 21,
deadlineLength: 35,
deadlineUnit: "days",
},
},
Expand Down
2 changes: 2 additions & 0 deletions integrations/evaluations/lib/emails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ export function calculateDeadline(
case "months":
futureDate.setMonth(date.getMonth() + deadline.deadlineLength);
return futureDate;
default:
throw new Error('Invalid time unit. Use "days", "weeks", or "months".');
}
}

Expand Down

0 comments on commit 546ecd0

Please sign in to comment.