From 0932c57fa12811c38eb49a587c11c7b89a4837d6 Mon Sep 17 00:00:00 2001 From: Zaid Marzguioui Date: Thu, 2 Apr 2026 19:30:59 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20revert=20ctx=E2=86=92=5Fctx=20rename=20?= =?UTF-8?q?=E2=80=94=20ctx=20IS=20used=20for=20auth=20in=20server=20action?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The previous lint fix incorrectly renamed ctx to _ctx in server actions that actually USE ctx.user.id for authorization. This caused runtime 'ctx is not defined' errors when creating pages, modules, etc. Reverted all 13 action files back to using ctx properly. --- .../src/server/actions/booking-actions.ts | 8 +++---- .../src/server/actions/course-actions.ts | 20 ++++++++-------- .../src/server/actions/event-actions.ts | 10 ++++---- .../src/server/actions/finance-actions.ts | 8 +++---- .../src/server/actions/fischerei-actions.ts | 24 +++++++++---------- .../src/server/actions/member-actions.ts | 12 +++++----- .../src/server/actions/file-actions.ts | 2 +- .../src/server/actions/record-actions.ts | 10 ++++---- .../src/server/actions/newsletter-actions.ts | 10 ++++---- .../server/actions/site-builder-actions.ts | 8 +++---- .../src/server/actions/meetings-actions.ts | 12 +++++----- .../src/server/actions/hierarchy-actions.ts | 6 ++--- .../src/server/actions/verband-actions.ts | 4 ++-- 13 files changed, 67 insertions(+), 67 deletions(-) diff --git a/packages/features/booking-management/src/server/actions/booking-actions.ts b/packages/features/booking-management/src/server/actions/booking-actions.ts index 7d059b182..8b046a253 100644 --- a/packages/features/booking-management/src/server/actions/booking-actions.ts +++ b/packages/features/booking-management/src/server/actions/booking-actions.ts @@ -15,7 +15,7 @@ import { createBookingManagementApi } from '../api'; export const createBooking = authActionClient .inputSchema(CreateBookingSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createBookingManagementApi(client); @@ -33,7 +33,7 @@ export const updateBookingStatus = authActionClient status: z.string(), }), ) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createBookingManagementApi(client); @@ -46,7 +46,7 @@ export const updateBookingStatus = authActionClient export const createRoom = authActionClient .inputSchema(CreateRoomSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createBookingManagementApi(client); @@ -59,7 +59,7 @@ export const createRoom = authActionClient export const createGuest = authActionClient .inputSchema(CreateGuestSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createBookingManagementApi(client); diff --git a/packages/features/course-management/src/server/actions/course-actions.ts b/packages/features/course-management/src/server/actions/course-actions.ts index 28a3c0338..c0bcbfc81 100644 --- a/packages/features/course-management/src/server/actions/course-actions.ts +++ b/packages/features/course-management/src/server/actions/course-actions.ts @@ -19,7 +19,7 @@ import { createCourseManagementApi } from '../api'; export const createCourse = authActionClient .inputSchema(CreateCourseSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createCourseManagementApi(client); @@ -32,7 +32,7 @@ export const createCourse = authActionClient export const updateCourse = authActionClient .inputSchema(UpdateCourseSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createCourseManagementApi(client); @@ -45,7 +45,7 @@ export const updateCourse = authActionClient export const deleteCourse = authActionClient .inputSchema(z.object({ courseId: z.string().uuid() })) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createCourseManagementApi(client); @@ -58,7 +58,7 @@ export const deleteCourse = authActionClient export const enrollParticipant = authActionClient .inputSchema(EnrollParticipantSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createCourseManagementApi(client); @@ -78,7 +78,7 @@ export const cancelEnrollment = authActionClient participantId: z.string().uuid(), }), ) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createCourseManagementApi(client); @@ -100,7 +100,7 @@ export const markAttendance = authActionClient present: z.boolean(), }), ) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createCourseManagementApi(client); @@ -117,7 +117,7 @@ export const markAttendance = authActionClient export const createCategory = authActionClient .inputSchema(CreateCategorySchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createCourseManagementApi(client); @@ -130,7 +130,7 @@ export const createCategory = authActionClient export const createInstructor = authActionClient .inputSchema(CreateInstructorSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createCourseManagementApi(client); @@ -143,7 +143,7 @@ export const createInstructor = authActionClient export const createLocation = authActionClient .inputSchema(CreateLocationSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createCourseManagementApi(client); @@ -156,7 +156,7 @@ export const createLocation = authActionClient export const createSession = authActionClient .inputSchema(CreateSessionSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createCourseManagementApi(client); diff --git a/packages/features/event-management/src/server/actions/event-actions.ts b/packages/features/event-management/src/server/actions/event-actions.ts index 02ed99356..479980544 100644 --- a/packages/features/event-management/src/server/actions/event-actions.ts +++ b/packages/features/event-management/src/server/actions/event-actions.ts @@ -16,7 +16,7 @@ import { createEventManagementApi } from '../api'; export const createEvent = authActionClient .inputSchema(CreateEventSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createEventManagementApi(client); @@ -29,7 +29,7 @@ export const createEvent = authActionClient export const updateEvent = authActionClient .inputSchema(UpdateEventSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createEventManagementApi(client); @@ -42,7 +42,7 @@ export const updateEvent = authActionClient export const deleteEvent = authActionClient .inputSchema(z.object({ eventId: z.string().uuid() })) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createEventManagementApi(client); @@ -55,7 +55,7 @@ export const deleteEvent = authActionClient export const registerForEvent = authActionClient .inputSchema(EventRegistrationSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createEventManagementApi(client); @@ -68,7 +68,7 @@ export const registerForEvent = authActionClient export const createHolidayPass = authActionClient .inputSchema(CreateHolidayPassSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createEventManagementApi(client); diff --git a/packages/features/finance/src/server/actions/finance-actions.ts b/packages/features/finance/src/server/actions/finance-actions.ts index deb473a3b..ece11383d 100644 --- a/packages/features/finance/src/server/actions/finance-actions.ts +++ b/packages/features/finance/src/server/actions/finance-actions.ts @@ -15,7 +15,7 @@ import { createFinanceApi } from '../api'; export const createSepaBatch = authActionClient .inputSchema(CreateSepaBatchSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createFinanceApi(client); @@ -29,7 +29,7 @@ export const createSepaBatch = authActionClient export const addSepaItem = authActionClient .inputSchema(AddSepaItemSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createFinanceApi(client); @@ -51,7 +51,7 @@ export const generateSepaXml = authActionClient creditorId: z.string(), }), ) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createFinanceApi(client); @@ -76,7 +76,7 @@ export const generateSepaXml = authActionClient export const createInvoice = authActionClient .inputSchema(CreateInvoiceSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createFinanceApi(client); diff --git a/packages/features/fischerei/src/server/actions/fischerei-actions.ts b/packages/features/fischerei/src/server/actions/fischerei-actions.ts index 24d3ef97d..70514deef 100644 --- a/packages/features/fischerei/src/server/actions/fischerei-actions.ts +++ b/packages/features/fischerei/src/server/actions/fischerei-actions.ts @@ -39,7 +39,7 @@ import { createFischereiApi } from '../api'; export const createWater = authActionClient .inputSchema(CreateWaterSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createFischereiApi(client); @@ -54,7 +54,7 @@ export const createWater = authActionClient export const updateWater = authActionClient .inputSchema(UpdateWaterSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createFischereiApi(client); @@ -191,7 +191,7 @@ export const deleteWaterSpeciesRule = authActionClient export const createStocking = authActionClient .inputSchema(CreateStockingSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createFischereiApi(client); @@ -212,7 +212,7 @@ export const createStocking = authActionClient export const updateStocking = authActionClient .inputSchema(UpdateStockingSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createFischereiApi(client); @@ -262,7 +262,7 @@ export const deleteStocking = authActionClient export const createLease = authActionClient .inputSchema(CreateLeaseSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createFischereiApi(client); @@ -277,7 +277,7 @@ export const createLease = authActionClient export const updateLease = authActionClient .inputSchema(UpdateLeaseSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createFischereiApi(client); @@ -315,7 +315,7 @@ export const deleteLease = authActionClient export const createCatchBook = authActionClient .inputSchema(CreateCatchBookSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createFischereiApi(client); @@ -333,7 +333,7 @@ export const createCatchBook = authActionClient export const updateCatchBook = authActionClient .inputSchema(UpdateCatchBookSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createFischereiApi(client); @@ -356,7 +356,7 @@ export const submitCatchBook = authActionClient accountId: z.string().uuid(), }), ) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createFischereiApi(client); @@ -382,7 +382,7 @@ export const reviewCatchBook = authActionClient remarks: z.string().optional(), }), ) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createFischereiApi(client); @@ -580,7 +580,7 @@ export const removeInspector = authActionClient export const createCompetition = authActionClient .inputSchema(CreateCompetitionSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createFischereiApi(client); @@ -601,7 +601,7 @@ export const createCompetition = authActionClient export const updateCompetition = authActionClient .inputSchema(UpdateCompetitionSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createFischereiApi(client); diff --git a/packages/features/member-management/src/server/actions/member-actions.ts b/packages/features/member-management/src/server/actions/member-actions.ts index 02248f029..48548d12b 100644 --- a/packages/features/member-management/src/server/actions/member-actions.ts +++ b/packages/features/member-management/src/server/actions/member-actions.ts @@ -24,7 +24,7 @@ import { createMemberManagementApi } from '../api'; export const createMember = authActionClient .inputSchema(CreateMemberSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createMemberManagementApi(client); @@ -58,7 +58,7 @@ export const createMember = authActionClient export const updateMember = authActionClient .inputSchema(UpdateMemberSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createMemberManagementApi(client); @@ -77,7 +77,7 @@ export const deleteMember = authActionClient accountId: z.string().uuid(), }), ) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createMemberManagementApi(client); @@ -95,7 +95,7 @@ export const approveApplication = authActionClient accountId: z.string().uuid(), }), ) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createMemberManagementApi(client); @@ -112,7 +112,7 @@ export const approveApplication = authActionClient export const rejectApplication = authActionClient .inputSchema(RejectApplicationSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createMemberManagementApi(client); @@ -342,7 +342,7 @@ export const inviteMemberToPortal = authActionClient email: z.string().email(), }), ) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createMemberManagementApi(client); diff --git a/packages/features/module-builder/src/server/actions/file-actions.ts b/packages/features/module-builder/src/server/actions/file-actions.ts index fe1148f18..be6b77481 100644 --- a/packages/features/module-builder/src/server/actions/file-actions.ts +++ b/packages/features/module-builder/src/server/actions/file-actions.ts @@ -25,7 +25,7 @@ export const uploadFile = authActionClient recordId: z.string().uuid().optional(), }), ) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createModuleBuilderApi(client); diff --git a/packages/features/module-builder/src/server/actions/record-actions.ts b/packages/features/module-builder/src/server/actions/record-actions.ts index d2d16b68f..3dec1250b 100644 --- a/packages/features/module-builder/src/server/actions/record-actions.ts +++ b/packages/features/module-builder/src/server/actions/record-actions.ts @@ -17,7 +17,7 @@ import { validateRecordData } from '../services/record-validation.service'; export const createRecord = authActionClient .inputSchema(CreateRecordSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createModuleBuilderApi(client); @@ -69,7 +69,7 @@ export const createRecord = authActionClient export const updateRecord = authActionClient .inputSchema(UpdateRecordSchema.extend({ accountId: z.string().uuid() })) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createModuleBuilderApi(client); @@ -123,7 +123,7 @@ export const updateRecord = authActionClient export const deleteRecord = authActionClient .inputSchema(DeleteRecordSchema.extend({ accountId: z.string().uuid() })) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createModuleBuilderApi(client); @@ -154,7 +154,7 @@ export const deleteRecord = authActionClient export const lockRecord = authActionClient .inputSchema(LockRecordSchema.extend({ accountId: z.string().uuid() })) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const api = createModuleBuilderApi(client); const userId = ctx.user.id; @@ -182,7 +182,7 @@ export const bulkImportRecords = authActionClient dryRun: z.boolean().default(false), }), ) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createModuleBuilderApi(client); diff --git a/packages/features/newsletter/src/server/actions/newsletter-actions.ts b/packages/features/newsletter/src/server/actions/newsletter-actions.ts index 21ec704d6..cb17f6469 100644 --- a/packages/features/newsletter/src/server/actions/newsletter-actions.ts +++ b/packages/features/newsletter/src/server/actions/newsletter-actions.ts @@ -14,7 +14,7 @@ import { createNewsletterApi } from '../api'; export const createNewsletter = authActionClient .inputSchema(CreateNewsletterSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createNewsletterApi(client); @@ -28,7 +28,7 @@ export const createNewsletter = authActionClient export const updateNewsletter = authActionClient .inputSchema(UpdateNewsletterSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createNewsletterApi(client); @@ -50,7 +50,7 @@ export const createTemplate = authActionClient variables: z.array(z.string()).optional(), }), ) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createNewsletterApi(client); @@ -73,7 +73,7 @@ export const addRecipients = authActionClient .optional(), }), ) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createNewsletterApi(client); @@ -94,7 +94,7 @@ export const dispatchNewsletter = authActionClient newsletterId: z.string().uuid(), }), ) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createNewsletterApi(client); diff --git a/packages/features/site-builder/src/server/actions/site-builder-actions.ts b/packages/features/site-builder/src/server/actions/site-builder-actions.ts index 5ac2af447..10eac8830 100644 --- a/packages/features/site-builder/src/server/actions/site-builder-actions.ts +++ b/packages/features/site-builder/src/server/actions/site-builder-actions.ts @@ -16,7 +16,7 @@ import { createSiteBuilderApi } from '../api'; export const createPage = authActionClient .inputSchema(CreatePageSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const api = createSiteBuilderApi(client); const data = await api.createPage(input, ctx.user.id); @@ -25,7 +25,7 @@ export const createPage = authActionClient export const saveDraft = authActionClient .inputSchema(UpdatePageSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const api = createSiteBuilderApi(client); const data = await api.updatePage( @@ -38,7 +38,7 @@ export const saveDraft = authActionClient export const publishPage = authActionClient .inputSchema(UpdatePageSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const api = createSiteBuilderApi(client); const data = await api.updatePage( @@ -69,7 +69,7 @@ export const updateSiteSettings = authActionClient export const createPost = authActionClient .inputSchema(CreatePostSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const api = createSiteBuilderApi(client); const data = await api.createPost(input, ctx.user.id); diff --git a/packages/features/sitzungsprotokolle/src/server/actions/meetings-actions.ts b/packages/features/sitzungsprotokolle/src/server/actions/meetings-actions.ts index 626d77c39..5bc80e1e8 100644 --- a/packages/features/sitzungsprotokolle/src/server/actions/meetings-actions.ts +++ b/packages/features/sitzungsprotokolle/src/server/actions/meetings-actions.ts @@ -26,7 +26,7 @@ const REVALIDATION_PATH = '/home/[account]/meetings'; export const createProtocol = authActionClient .inputSchema(CreateMeetingProtocolSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createMeetingsApi(client); @@ -44,7 +44,7 @@ export const createProtocol = authActionClient export const updateProtocol = authActionClient .inputSchema(UpdateMeetingProtocolSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createMeetingsApi(client); @@ -88,7 +88,7 @@ export const deleteProtocol = authActionClient export const createProtocolItem = authActionClient .inputSchema(CreateProtocolItemSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createMeetingsApi(client); @@ -109,7 +109,7 @@ export const createProtocolItem = authActionClient export const updateProtocolItem = authActionClient .inputSchema(UpdateProtocolItemSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createMeetingsApi(client); @@ -130,7 +130,7 @@ export const updateProtocolItem = authActionClient export const updateItemStatus = authActionClient .inputSchema(UpdateItemStatusSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createMeetingsApi(client); @@ -198,7 +198,7 @@ export const addProtocolAttachment = authActionClient mimeType: z.string().min(1), }), ) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createMeetingsApi(client); diff --git a/packages/features/verbandsverwaltung/src/server/actions/hierarchy-actions.ts b/packages/features/verbandsverwaltung/src/server/actions/hierarchy-actions.ts index ccbd57300..bb0d05b8a 100644 --- a/packages/features/verbandsverwaltung/src/server/actions/hierarchy-actions.ts +++ b/packages/features/verbandsverwaltung/src/server/actions/hierarchy-actions.ts @@ -19,7 +19,7 @@ const REVALIDATE_PATH = '/home/[account]/verband'; export const linkChildAccount = authActionClient .inputSchema(SetAccountParentSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); @@ -69,7 +69,7 @@ export const linkChildAccount = authActionClient export const unlinkChildAccount = authActionClient .inputSchema(RemoveAccountParentSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); @@ -141,7 +141,7 @@ export const getTransferPreview = authActionClient export const transferMember = authActionClient .inputSchema(TransferMemberSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createVerbandApi(client); diff --git a/packages/features/verbandsverwaltung/src/server/actions/verband-actions.ts b/packages/features/verbandsverwaltung/src/server/actions/verband-actions.ts index a31394b4d..89bd2de6f 100644 --- a/packages/features/verbandsverwaltung/src/server/actions/verband-actions.ts +++ b/packages/features/verbandsverwaltung/src/server/actions/verband-actions.ts @@ -31,7 +31,7 @@ const REVALIDATE_PATH = '/home/[account]/verband'; export const createClub = authActionClient .inputSchema(CreateMemberClubSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createVerbandApi(client); @@ -46,7 +46,7 @@ export const createClub = authActionClient export const updateClub = authActionClient .inputSchema(UpdateMemberClubSchema) - .action(async ({ parsedInput: input, ctx: _ctx }) => { + .action(async ({ parsedInput: input, ctx }) => { const client = getSupabaseServerClient(); const logger = await getLogger(); const api = createVerbandApi(client);