From e2541a161a71c3609e50db2430bad97f5437918e Mon Sep 17 00:00:00 2001 From: Anand Chowdhary Date: Sun, 8 Nov 2020 13:04:01 +0530 Subject: [PATCH] :bug: Add ConfigModule to ApiKeysModule --- src/modules/api-keys/api-keys.module.ts | 3 ++- src/modules/webhooks/webhooks.module.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/api-keys/api-keys.module.ts b/src/modules/api-keys/api-keys.module.ts index 9fbc84497..0b2fa67d1 100644 --- a/src/modules/api-keys/api-keys.module.ts +++ b/src/modules/api-keys/api-keys.module.ts @@ -1,4 +1,5 @@ import { Module } from '@nestjs/common'; +import { ConfigModule } from '@nestjs/config'; import { PrismaModule } from '../prisma/prisma.module'; import { StripeModule } from '../stripe/stripe.module'; import { TokensModule } from '../tokens/tokens.module'; @@ -7,7 +8,7 @@ import { ApiKeyUserController } from './api-keys-user.controller'; import { ApiKeysService } from './api-keys.service'; @Module({ - imports: [PrismaModule, TokensModule, StripeModule], + imports: [PrismaModule, TokensModule, StripeModule, ConfigModule], controllers: [ApiKeyGroupController, ApiKeyUserController], providers: [ApiKeysService], }) diff --git a/src/modules/webhooks/webhooks.module.ts b/src/modules/webhooks/webhooks.module.ts index 8150cffc8..aeac570ee 100644 --- a/src/modules/webhooks/webhooks.module.ts +++ b/src/modules/webhooks/webhooks.module.ts @@ -9,5 +9,6 @@ import { WebhooksService } from './webhooks.service'; imports: [PrismaModule, TokensModule, StripeModule], controllers: [WebhookController], providers: [WebhooksService], + exports: [WebhooksService], }) export class WebhooksModule {}