fix for working alos with build

This commit is contained in:
Dario Rekowski on RockPI 2021-09-24 14:48:05 +00:00
parent 9f87fb69b3
commit fb39441f41

View File

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