diff --git a/backend/src/typeorm/connection.ts b/backend/src/typeorm/connection.ts index db7dbcb29..0fcd6aac3 100644 --- a/backend/src/typeorm/connection.ts +++ b/backend/src/typeorm/connection.ts @@ -13,7 +13,7 @@ const connection = async (): Promise => { username: CONFIG.DB_USER, password: CONFIG.DB_PASSWORD, database: CONFIG.DB_DATABASE, - entities: [path.join(__dirname, 'entity', '*.ts')], + entities: [path.join(__dirname, 'entity', '*.{ts,js}')], synchronize: false, }) } catch (error) {}