Merge pull request #897 from gradido/bugfix_apollo

fix error with apollo, typeorm and build
This commit is contained in:
einhornimmond 2021-09-24 17:00:29 +02:00 committed by GitHub
commit 9211f52d7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,7 @@ const connection = async (): Promise<Connection | null> => {
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) {}