Skip to content

Commit

Permalink
Merge branch 'feat/-auth_sending_emails' of https://github.com/active…
Browse files Browse the repository at this point in the history
…courses/disworse into feat/-auth_sending_emails
  • Loading branch information
aymanshalaby55 committed Oct 5, 2024
2 parents 25f3f3f + f0b0378 commit 8932acf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 16 deletions.
10 changes: 10 additions & 0 deletions apps/api/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@ import { MailModule } from "./modules/mail/mail.module";
}),
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, AppResolver],
})
Expand Down
16 changes: 0 additions & 16 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8932acf

Please sign in to comment.