mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-07-10 15:17:44 +00:00
feat: create junior
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
import { NestFactory } from '@nestjs/core';
|
||||
import { AppModule } from './src/app.module';
|
||||
import { DataSource } from 'typeorm';
|
||||
import { initializeTransactionalContext } from 'typeorm-transactional';
|
||||
import { AppModule } from './src/app.module';
|
||||
|
||||
/**
|
||||
* Getting data source through NestJS app helps in getting entities dynamically with "autoLoadEntities" NestJS feature
|
||||
@ -8,6 +9,7 @@ import { DataSource } from 'typeorm';
|
||||
*/
|
||||
async function getTypeOrmDataSource() {
|
||||
process.env.MIGRATIONS_RUN = 'false';
|
||||
initializeTransactionalContext();
|
||||
|
||||
const app = await NestFactory.createApplicationContext(AppModule);
|
||||
|
||||
|
Reference in New Issue
Block a user