From fb39441f419a527e6f2a3bace376e0152923d33e Mon Sep 17 00:00:00 2001 From: Dario Rekowski on RockPI Date: Fri, 24 Sep 2021 14:48:05 +0000 Subject: [PATCH] fix for working alos with build --- backend/src/typeorm/connection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/typeorm/connection.ts b/backend/src/typeorm/connection.ts index b108c5ef5..012cdd63b 100644 --- a/backend/src/typeorm/connection.ts +++ b/backend/src/typeorm/connection.ts @@ -11,7 +11,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, })