File tree Expand file tree Collapse file tree
apps/web/src/server/routes/events Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,10 +29,11 @@ const app = new Hono()
2929 const user = session . user ;
3030
3131 const { volunteerRegistrationId, approved, note } = await c . req . json ( ) ;
32- const eventIdentifier = c . req . param ( "eventId" ) ;
33- if ( ! eventIdentifier ) {
32+ const eventIdentifierParam = c . req . param ( "eventId" ) ;
33+ if ( ! eventIdentifierParam ) {
3434 return c . json ( { error : "活动不存在" } , 404 ) ;
3535 }
36+ const eventIdentifier = eventIdentifierParam ;
3637
3738 try {
3839 // 验证活动权限 - 只有活动组织者或组织管理员可以审核
@@ -177,10 +178,11 @@ const app = new Hono()
177178 const user = session . user ;
178179
179180 const { volunteerRegistrationId, completed } = await c . req . json ( ) ;
180- const eventIdentifier = c . req . param ( "eventId" ) ;
181- if ( ! eventIdentifier ) {
181+ const eventIdentifierParam = c . req . param ( "eventId" ) ;
182+ if ( ! eventIdentifierParam ) {
182183 return c . json ( { error : "活动不存在" } , 404 ) ;
183184 }
185+ const eventIdentifier = eventIdentifierParam ;
184186
185187 try {
186188 // 验证活动权限
You can’t perform that action at this time.
0 commit comments