File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 "dev" : " next dev" ,
1515 "postinstall" : " prisma generate" ,
1616 "lint" : " next lint" ,
17+ "prestart" : " prisma migrate deploy" ,
1718 "start" : " next start" ,
1819 "test" : " jest" ,
1920 "test:watch" : " jest --watch" ,
Original file line number Diff line number Diff line change @@ -30,14 +30,18 @@ export default async function handler(
3030
3131 // Log whether the address has a corresponding user, but don't block nonce issuance.
3232 // This allows first-time wallet connections to authorize via nonce signing.
33- const user = await db . user . findUnique ( { where : { address } } ) ;
34- if ( ! user ) {
35- console . warn ( "[getNonce] Address has no User record yet:" , address ) ;
36- } else {
37- console . debug ( "[getNonce] Found User for address:" , {
38- address,
39- userId : user . id ,
40- } ) ;
33+ try {
34+ const user = await db . user . findUnique ( { where : { address } } ) ;
35+ if ( ! user ) {
36+ console . warn ( "[getNonce] Address has no User record yet:" , address ) ;
37+ } else {
38+ console . debug ( "[getNonce] Found User for address:" , {
39+ address,
40+ userId : user . id ,
41+ } ) ;
42+ }
43+ } catch ( userLookupError ) {
44+ console . warn ( "[getNonce] User lookup failed (table may not exist yet):" , ( userLookupError as Error ) . message ) ;
4145 }
4246
4347 // Check if a nonce already exists for this address in the database
You can’t perform that action at this time.
0 commit comments