mirror of
https://github.com/CaramelFur/Picsur.git
synced 2025-10-26 06:56:06 +01:00
15 lines
424 B
TypeScript
15 lines
424 B
TypeScript
|
|
import { Module } from '@nestjs/common';
|
||
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
||
|
|
import { EarlyConfigModule } from '../config/early/early-config.module';
|
||
|
|
import { TypeOrmConfigService } from '../config/early/type-orm.config.service';
|
||
|
|
|
||
|
|
@Module({
|
||
|
|
imports: [
|
||
|
|
TypeOrmModule.forRootAsync({
|
||
|
|
useExisting: TypeOrmConfigService,
|
||
|
|
imports: [EarlyConfigModule],
|
||
|
|
}),
|
||
|
|
],
|
||
|
|
})
|
||
|
|
export class DatabaseModule {}
|