mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
refactor(core): Update invitation endpoints to use DTOs (#12377)
This commit is contained in:
committed by
GitHub
parent
371a09de96
commit
7b2630d1a0
@@ -93,7 +93,7 @@ export class ControllerRegistry {
|
||||
if (arg.type === 'param') args.push(req.params[arg.key]);
|
||||
else if (['body', 'query'].includes(arg.type)) {
|
||||
const paramType = argTypes[index] as ZodClass;
|
||||
if (paramType && 'parse' in paramType) {
|
||||
if (paramType && 'safeParse' in paramType) {
|
||||
const output = paramType.safeParse(req[arg.type]);
|
||||
if (output.success) args.push(output.data);
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user