diff --git a/lib/sqs.service.ts b/lib/sqs.service.ts index 3239ece..d5d75af 100644 --- a/lib/sqs.service.ts +++ b/lib/sqs.service.ts @@ -37,6 +37,7 @@ export class SqsService implements OnModuleInit, OnModuleDestroy { const metadata = messageHandlers.find(({ meta }) => meta.name === name); if (!metadata) { this.logger.warn(`No metadata found for: ${name}`); + return; } const isBatchHandler = metadata.meta.batch === true;