diff --git a/src/signup-http.tsx b/src/signup-http.tsx index a7acf03..3cf84ce 100644 --- a/src/signup-http.tsx +++ b/src/signup-http.tsx @@ -291,7 +291,7 @@ function redirectGrouped( services: SignupServices, pageShiftId: number, signups: Array<{ signupId: number; shiftId: number; manageToken: string | null }>, -): Response { +): Promise | Response { const primary = signups.find((row) => row.shiftId === pageShiftId) ?? signups[0]; if (!primary) return html(c, services, 'That page is not available ยท Hope Volunteer', , 404); const issued = signups.every((row) => row.manageToken) @@ -315,7 +315,7 @@ function groupFailure( selectedDateIds: number[], reason: 'not_found' | 'closed' | 'early' | 'full' | 'duplicate' | 'conflict', shiftId: number, -): Response { +): Promise | Response { const failed = getPublicShift(services.db, shiftId, services.now()); const label = failed ? shiftChoiceLabel(failed, shift) : undefined; const errors: SignupErrors = {};