Skip to content

Commit

Permalink
fix: πŸ› resolve typos and types
Browse files Browse the repository at this point in the history
  • Loading branch information
seancfong committed Jun 7, 2024
1 parent 9a5b1d3 commit add4ede
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/routes/availability/[slug]/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ import type { ZotDate } from "$lib/utils/ZotDate";
export const load: PageServerLoad = (async ({ locals, params }) => {
const user = locals.user;
// @ts-expect-error slug is defined in the route
const meeting_id: string = params?.slug;
const meeting_id: string = params?.slug ?? "";

// TODO: If no slug is in the URL (i.e. no meeting ID), we should redirect to an error page

return {
form: await superValidate(_loginSchema),
availability: user ? await getUserSpecificAvailability(user, meeting_id) : null,
groupAvailabilities: await getMeetingMemeberAvailabilities(meeting_id),
groupAvailabilities: await getMeetingMemberAvailabilities(meeting_id),
meetingId: meeting_id as string | undefined,
meetingData: await getExistingMeeting(meeting_id),
defaultDates: (await _getMeetingDates(meeting_id)) ?? [],
Expand Down Expand Up @@ -59,7 +59,7 @@ const getUserSpecificAvailability = async (
* @param meetingId
* @returns a record of the member name to their availabilities, each sorted by date
*/
async function getMeetingMemeberAvailabilities(meetingId: string) {
async function getMeetingMemberAvailabilities(meetingId: string) {
const raw_availabilities = await db
.select({
username: users.displayName,
Expand Down

0 comments on commit add4ede

Please sign in to comment.