Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

chore(webhooks): simplify generic webhook validation

Tinf5ff643b90e5
diff --git a/apps/api/src/plugins/generic-webhook/config.ts b/apps/api/src/plugins/generic-webhook/config.ts
index 7284cee6f..0d482af1d 100644
--- a/apps/api/src/plugins/generic-webhook/config.ts
+++ b/apps/api/src/plugins/generic-webhook/config.ts
@@ -59,9 +59,7 @@ export async function validateGenericWebhookConfig(
config: unknown,
): Promise<{ valid: boolean; errors?: string[] }> {
try {
- const parsed = v.parse(genericWebhookConfigSchema, config);
- const normalized = normalizeGenericWebhookConfig(parsed);
- void normalized;
+ v.parse(genericWebhookConfigSchema, config);
return { valid: true };
} catch (error) {
if (error instanceof v.ValiError) {