2
0
forked from jmug/cactoide

fix: rvsp delet models

This commit is contained in:
Levente Orban
2025-10-26 17:41:44 +01:00
parent 93b0bac48a
commit 5809cb49ee
6 changed files with 45 additions and 53 deletions

View File

@@ -1,9 +1,8 @@
import { database } from '$lib/database/db';
import { events, rsvps, inviteTokens } from '$lib/database/schema';
import { eq, asc, and } from 'drizzle-orm';
import { events, rsvps } from '$lib/database/schema';
import { eq, asc } from 'drizzle-orm';
import { error, fail } from '@sveltejs/kit';
import type { PageServerLoad, Actions } from './$types';
import { isTokenValid } from '$lib/inviteTokenHelpers.js';
export const load: PageServerLoad = async ({ params, cookies }) => {
const eventId = params.id;