From a976423ae7591e6a54eeedbdec5522e4796b2dcf Mon Sep 17 00:00:00 2001 From: Niek Candaele Date: Sat, 17 Aug 2024 19:38:39 +0200 Subject: [PATCH] fix: allow searching by external reference --- packages/app-api/src/controllers/DomainController.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/app-api/src/controllers/DomainController.ts b/packages/app-api/src/controllers/DomainController.ts index 2f3141f9f7..affb053755 100644 --- a/packages/app-api/src/controllers/DomainController.ts +++ b/packages/app-api/src/controllers/DomainController.ts @@ -44,6 +44,10 @@ export class DomainSearchInputAllowedFilters { @IsOptional() @IsEnum(Object.values(DOMAIN_STATES), { each: true }) state!: DOMAIN_STATES[]; + + @IsOptional() + @IsString({ each: true }) + externalReference!: string[]; } export class DomainSearchInputDTO extends ITakaroQuery {