mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-19 17:55:17 -04:00
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:
parent
2aac53670e
commit
e316f1dcd9
1 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,7 @@ const umzug = new Umzug({
|
||||||
},
|
},
|
||||||
// Required wrapper function required to prevent winstion issue
|
// Required wrapper function required to prevent winstion issue
|
||||||
// https://github.com/winstonjs/winston/issues/1577
|
// https://github.com/winstonjs/winston/issues/1577
|
||||||
logging: message => {
|
logging: (message): void => {
|
||||||
logger.info(message)
|
logger.info(message)
|
||||||
},
|
},
|
||||||
storage: 'sequelize',
|
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
|
// checks migrations and run them if they are not already applied
|
||||||
// exit in case of unsuccessful migrations
|
// exit in case of unsuccessful migrations
|
||||||
await umzug.up().catch(error => {
|
await umzug.up().catch(error => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue