mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-23 10:16:32 -05: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
|
||||
// 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 => {
|
||||
|
|
Loading…
Reference in a new issue