diff --git a/src/common/decorators/domain.decorator.ts b/src/common/decorators/domain.decorator.ts index bcd02c2..1ecb045 100644 --- a/src/common/decorators/domain.decorator.ts +++ b/src/common/decorators/domain.decorator.ts @@ -7,7 +7,7 @@ import type { FastifyRequest } from 'fastify'; */ export const Domain = createParamDecorator((_, context: ExecutionContext) => { const request = context.switchToHttp().getRequest(); - return request.headers['sk-domain']; + return request.headers['sk-domain'] ?? 1; }); export type SkDomain = number;