Fixed wrong import of sequelize
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import express, { Application } from 'express'
|
import express, { Application } from 'express'
|
||||||
import { Sequelize } from 'sequelize/types'
|
import { Sequelize } from 'sequelize'
|
||||||
|
|
||||||
// import ControllerBase from './class/controller.base'
|
// import ControllerBase from './class/controller.base'
|
||||||
|
|
||||||
@@ -74,17 +74,4 @@ export class AuracleApi {
|
|||||||
console.log(`App listening on port ${this.port}`)
|
console.log(`App listening on port ${this.port}`)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
public close = async () => {
|
|
||||||
console.log('Closing the app...')
|
|
||||||
|
|
||||||
console.log('Closing database...')
|
|
||||||
this.database.close().then(() => {
|
|
||||||
console.log('App was successfully closed.')
|
|
||||||
})
|
|
||||||
.catch((err) => {
|
|
||||||
console.error('Encountered an error while closing !')
|
|
||||||
console.error(err)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user