fix: rename unused ctx params to _ctx, remove unused imports
Some checks failed
Workflow / ʦ TypeScript (push) Failing after 5m38s
Workflow / ⚫️ Test (push) Has been skipped

- Fix 17 unused ctx params in module-builder, verbandsverwaltung, sitzungsprotokolle actions
- Remove unused CardDescription/CardHeader/CardTitle from pricing calculator
- Remove unused FileSignature import from layout
This commit is contained in:
Zaid Marzguioui
2026-04-02 19:25:01 +02:00
parent a3be926f6f
commit a1aa1bee86
7 changed files with 17 additions and 21 deletions

View File

@@ -25,7 +25,7 @@ export const uploadFile = authActionClient
recordId: z.string().uuid().optional(),
}),
)
.action(async ({ parsedInput: input, ctx }) => {
.action(async ({ parsedInput: input, ctx: _ctx }) => {
const client = getSupabaseServerClient();
const logger = await getLogger();
const api = createModuleBuilderApi(client);

View File

@@ -17,7 +17,7 @@ import { validateRecordData } from '../services/record-validation.service';
export const createRecord = authActionClient
.inputSchema(CreateRecordSchema)
.action(async ({ parsedInput: input, ctx }) => {
.action(async ({ parsedInput: input, ctx: _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 }) => {
.action(async ({ parsedInput: input, ctx: _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 }) => {
.action(async ({ parsedInput: input, ctx: _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 }) => {
.action(async ({ parsedInput: input, ctx: _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 }) => {
.action(async ({ parsedInput: input, ctx: _ctx }) => {
const client = getSupabaseServerClient();
const logger = await getLogger();
const api = createModuleBuilderApi(client);