Skip to content

Commit 8ce0937

Browse files
committed
chore: apply formatting fix for volunteer admin route
1 parent 7cc535e commit 8ce0937

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

apps/web/src/server/routes/events/volunteer-admin.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff 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
// 验证活动权限

0 commit comments

Comments
 (0)