Skip to content

Commit

Permalink
fix: app module conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanshalaby55 committed Oct 19, 2024
1 parent a8f61e2 commit 3d89739
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions apps/api/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { AppService } from "./app.service";
import { AuthenticatedGuard } from "./common/guards/auth.guard";
import { DrizzleModule } from "./drizzle/drizzle.module";
import { AuthModule } from "./modules/auth/auth.module";
import { MailModule } from "./modules/mail/mail.module";
import { validate } from "./utils/env.validate";

@Module({
Expand Down Expand Up @@ -41,17 +40,6 @@ import { validate } from "./utils/env.validate";
database: String(process.env.POSTGRES_DB),
}),
AuthModule,
MailModule,
DrizzleModule.forRootAsync({
imports: [ConfigModule],
inject: [ConfigService],
useFactory: (configService: ConfigService) => ({
// TODO: add validation for env vars
url: configService.get<string>("DATABASE_URL") as string,
database: configService.get<string>("POSTGRES_DB") as string,
}),
}),
AuthModule,
],
providers: [
AppService,
Expand Down

0 comments on commit 3d89739

Please sign in to comment.