Skip to content

Commit

Permalink
add timezone to application
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhappyma committed Sep 19, 2024
1 parent 4008d7b commit efbe72f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/applications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const submittedApplicationSchema = z.object({
why: z.string(),
source: z.string(),
token: z.string(),
tz: z.number(),
});

export const handleIncomingApplication = async (
Expand All @@ -25,7 +26,7 @@ export const handleIncomingApplication = async (
});
if (!application || !application.active) return;
await sendKitchenMessage(KitchenChannel.applications, {
content: `Application from <@!${application.user}>:\nWhy:\n\`\`\`${data.why}\`\`\`\nSource:\n\`\`\`${data.source}\`\`\``,
content: `Application from <@!${application.user}>:\nWhy:\n\`\`\`${data.why}\`\`\`\nSource:\n\`\`\`${data.source}\`\`\`\nUTC Offset: \`${data.tz}\``,
});
await prisma.application.update({
where: {
Expand Down

0 comments on commit efbe72f

Please sign in to comment.