Added cast to apiPort and cleaned more code

This commit is contained in:
Alexis
2021-07-19 21:34:00 +02:00
parent b80ff9a982
commit e84143c114
2 changed files with 15 additions and 23 deletions

View File

@@ -11,14 +11,14 @@ export class AuracleApi {
private database?: Sequelize;
constructor(init: {
port: number
port: any
middlewares: any
// controllers: Array<ControllerBase>
modules?: Array<any>
database?: Sequelize
}) {
this.app = express()
this.port = init.port
this.port = Number(init.port)
this.database = init.database
if (init.modules) {