fix eslint warning and error, one each

fix warning line 38 Missing return type on function
fix error   line 47 Missing space before function parentheses

Signed-off-by: Bennet Bleßmann <bb-github@t-online.de>
This commit is contained in:
Bennet Bleßmann 2020-08-05 00:09:19 +02:00
parent 2aac53670e
commit e316f1dcd9
No known key found for this signature in database
GPG key ID: 3BE1A1A3CBC3CF99

View file

@ -35,7 +35,7 @@ const umzug = new Umzug({
},
// Required wrapper function required to prevent winstion issue
// https://github.com/winstonjs/winston/issues/1577
logging: message => {
logging: (message): void => {
logger.info(message)
},
storage: 'sequelize',
@ -44,7 +44,7 @@ const umzug = new Umzug({
}
})
export async function runMigrations(): Promise<void> {
export async function runMigrations (): Promise<void> {
// checks migrations and run them if they are not already applied
// exit in case of unsuccessful migrations
await umzug.up().catch(error => {