feat: finalize ticket merging and speaker-aware imports
This commit is contained in:
1 parent
648daa0794
commit
4e71e9b797
35 files changed
+1772
-348
No files matched your search
@@ -106,7 +106,9 @@ export async function getMyContact(email: string): Promise<Contact | null> {
|
||||
|
||||
/** The signed-in contact's registration for the active event. */
|
||||
export async function getMyRegistration(email: string): Promise<Registration | null> {
|
||||
const { data, error } = await supabase.from('registrations').select('*').eq('contact_email', email).maybeSingle();
|
||||
const event = await getActiveEvent();
|
||||
if (!event) return null;
|
||||
const { data, error } = await supabase.from('registrations').select('*').eq('contact_email', email).eq('event_id', event.id).maybeSingle();
|
||||
if (error) throw new ApiError(error.message);
|
||||
return (data as Registration) ?? null;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user