IlhamTahir 1 year ago
parent
commit
2ca39b3777
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/core/core.module.ts

+ 1 - 1
src/core/core.module.ts

@@ -31,7 +31,7 @@ import { JWT_EXPIRATION, JWT_SECRET } from './constants/jwt';
         database: configService.get<string>('DB_NAME'),
         autoLoadEntities: true,
         entities: [__dirname + '/**/*.entity{.ts,.js}'],
-        synchronize: process.env.NODE_ENV === 'development',
+        synchronize: ['development', 'test'].includes(process.env.NODE_ENV),
         logging: true,
       }),
       inject: [ConfigService],