group events
This commit is contained in:
@@ -2,8 +2,9 @@ import { Module } from '@nestjs/common';
|
||||
import { ConfigModule, ConfigService } from '@nestjs/config';
|
||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||
import { GroupEntity } from '../groups/persistence/group.entity';
|
||||
import { GroupEventEntity } from 'src/groups/persistence/group-event.entity';
|
||||
|
||||
const ENTITY = [GroupEntity]
|
||||
const ENTITY = [GroupEntity, GroupEventEntity]
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
@@ -19,7 +20,7 @@ const ENTITY = [GroupEntity]
|
||||
password: configService.get('DATABASE_PASSWORD'),
|
||||
database: configService.get('DATABASE_NAME'),
|
||||
entities: ENTITY,
|
||||
synchronize: true,
|
||||
synchronize: (configService.get('DATABASE_SYNC')||'').toLowerCase() == 'true',
|
||||
})
|
||||
})
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user