From a600eaa4b80a8262e92f9735e7655edd0946b0b0 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Tue, 12 Oct 2021 10:37:43 +0200 Subject: [PATCH] unify database connection database & backend - also log errors --- database/src/typeorm/connection.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/database/src/typeorm/connection.ts b/database/src/typeorm/connection.ts index 6e8bd5c09..e3434c3aa 100644 --- a/database/src/typeorm/connection.ts +++ b/database/src/typeorm/connection.ts @@ -16,7 +16,10 @@ const connection = async (): Promise => { entities, synchronize: false, }) - } catch (error) {} + } catch (error) { + // eslint-disable-next-line no-console + console.log(error) + } return con }