// This is special connection we create during "bootstrap" of the system that is needed for our Repositories to use
// We also using another "default" connection defined in app.module.ts using `TypeOrmModule.forRoot(connectionSettings)` which will be used in other places.
constconnectionSettings:ConnectionOptions=
{
// Note: do not change this connection name
name:'typeorm',
// TODO: put this into settings (it's mongo only during testing of TypeORM integration!)
type:'mongodb',
@@ -153,9 +156,9 @@ export class ServicesApp {
entities,
synchronize:true,
useNewUrlParser:true,
// autoReconnect: true,
// reconnectTries: Number.MAX_VALUE,
// poolSize: ServicesApp._poolSize,
autoReconnect:true,
reconnectTries:Number.MAX_VALUE,
poolSize:ServicesApp._poolSize,
connectTimeoutMS:ServicesApp._connectTimeoutMS,
logging:true,
logger:'file',//Removes console logging, instead logs all queries in a file ormlogs.log