Skip to content

Commit

Permalink
chore: 버그 fix 배포용 commit
Browse files Browse the repository at this point in the history
  • Loading branch information
SeongHyeon0409 committed Nov 18, 2024
1 parent 3418ccc commit 99456c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/server/src/configs/typeorm.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function getTypeOrmConfig(): TypeOrmModuleOptions {
password: process.env.DB_PASSWORD,
database: process.env.DB_DATABASE,
entities: [__dirname + '/../**/*.entity.{js,ts}'],
synchronize: Boolean(process.env.DB_SYNCHRONIZE),
dropSchema: Boolean(process.env.DB_DROPSCHEMA),
synchronize: process.env.DB_SYNCHRONIZE === 'true',
dropSchema: process.env.DB_DROPSCHEMA === 'true',
};
}
4 changes: 2 additions & 2 deletions packages/server/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import { AllExceptionsFilter } from 'common/all-exceptions.filter';

config();
console.log({
synchronize: Boolean(process.env.DB_SYNCHRONIZE),
dropSchema: Boolean(process.env.DB_DROPSCHEMA),
synchronize: process.env.DB_SYNCHRONIZE === "true", // "true" 문자열인 경우만 true로 변환
dropSchema: process.env.DB_DROPSCHEMA === "true",
});
async function bootstrap() {
await setupSshTunnel();
Expand Down

0 comments on commit 99456c4

Please sign in to comment.