unify database connection database & backend - also log errors

This commit is contained in:
Ulf Gebhardt 2021-10-12 10:37:43 +02:00
parent da57754649
commit c726ee9483
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD

View File

@ -16,7 +16,10 @@ const connection = async (): Promise<Connection | null> => {
entities,
synchronize: false,
})
} catch (error) {}
} catch (error) {
// eslint-disable-next-line no-console
console.log(error)
}
return con
}