From 2ca39b3777fa1dd9bc21cc88c6fe7292b05a1240 Mon Sep 17 00:00:00 2001 From: IlhamTahir Date: Sun, 17 Nov 2024 15:28:14 +0800 Subject: [PATCH] fix --- src/core/core.module.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/core.module.ts b/src/core/core.module.ts index 0924ef9..1abdd6b 100644 --- a/src/core/core.module.ts +++ b/src/core/core.module.ts @@ -31,7 +31,7 @@ import { JWT_EXPIRATION, JWT_SECRET } from './constants/jwt'; database: configService.get('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],