Skip to content

Commit

Permalink
hot: ulids for sessions to indicate time
Browse files Browse the repository at this point in the history
  • Loading branch information
c0repwn3r committed Nov 17, 2024
1 parent 8fa323f commit 781b1a7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Binary file modified bun.lockb
Binary file not shown.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "scheddy",
"version": "1.0.0",
"version": "1.0.1",
"type": "module",
"scripts": {
"dev": "vite dev",
Expand Down Expand Up @@ -51,6 +51,7 @@
"nanoid": "^5.0.8",
"nodemailer": "^6.9.16",
"sveltekit-superforms": "^2.20.0",
"tailwind-merge": "^2.5.4"
"tailwind-merge": "^2.5.4",
"ulid": "^2.3.0"
}
}
4 changes: 2 additions & 2 deletions src/routes/(authed)/schedule/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type { DayAvailability, MentorAvailability } from '$lib/availability';
import { DateTime, Duration, Interval } from 'luxon';
import { fail } from '@sveltejs/kit';
import { MAX_BOOKING_AHEAD_DAYS } from '$env/static/private';
import { nanoid } from 'nanoid';
import { ulid } from 'ulid';
import { appointment_booked } from '$lib/emails/appointment_booked';
import { sendEmail } from '$lib/email';
import { new_session } from '$lib/emails/new_session';
Expand Down Expand Up @@ -248,7 +248,7 @@ export const actions: Actions = {
}
}

const id = nanoid();
const id = ulid();

const studentEmailContent = appointment_booked({
startTime: start.setZone(timezone.toString()),
Expand Down

0 comments on commit 781b1a7

Please sign in to comment.