File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -126,16 +126,17 @@ export async function handleGoldenTicket(email: string) {
126126 console . log ( 'Error registering early access' , error ) ;
127127 if ( error . code === '23505' ) {
128128 console . log ( 'Email already registered for early access, granted access' ) ;
129- return db . update ( earlyAccess ) . set ( {
130- hasUsedTicket : email ,
131- updatedAt : new Date ( )
132- } ) . where ( eq ( earlyAccess . email , foundUser ?. email ) )
133129 } else {
134130 console . error ( 'Error registering early access' , error ) ;
135131 throw error ;
136132 }
137133 } )
138134
135+ await db . update ( earlyAccess ) . set ( {
136+ hasUsedTicket : email ,
137+ updatedAt : new Date ( )
138+ } ) . where ( eq ( earlyAccess . email , foundUser ?. email ) )
139+
139140 return { success : true } ;
140141 } catch ( error ) {
141142 console . error ( 'Failed to handle golden ticket:' , error ) ;
You can’t perform that action at this time.
0 commit comments