diff options
Diffstat (limited to 'server/initializers/installer.ts')
-rw-r--r-- | server/initializers/installer.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/initializers/installer.ts b/server/initializers/installer.ts index 2f9b58991..f105c8292 100644 --- a/server/initializers/installer.ts +++ b/server/initializers/installer.ts | |||
@@ -9,7 +9,7 @@ import { USER_ROLES, CONFIG, LAST_MIGRATION_VERSION } from './constants' | |||
9 | import { clientsExist, usersExist } from './checker' | 9 | import { clientsExist, usersExist } from './checker' |
10 | import { logger, createCertsIfNotExist, root } from '../helpers' | 10 | import { logger, createCertsIfNotExist, root } from '../helpers' |
11 | 11 | ||
12 | function installApplication (callback) { | 12 | function installApplication (callback: (err: Error) => void) { |
13 | series([ | 13 | series([ |
14 | function createDatabase (callbackAsync) { | 14 | function createDatabase (callbackAsync) { |
15 | db.sequelize.sync().asCallback(callbackAsync) | 15 | db.sequelize.sync().asCallback(callbackAsync) |
@@ -42,7 +42,7 @@ export { | |||
42 | 42 | ||
43 | // --------------------------------------------------------------------------- | 43 | // --------------------------------------------------------------------------- |
44 | 44 | ||
45 | function createDirectoriesIfNotExist (callback) { | 45 | function createDirectoriesIfNotExist (callback: (err: Error) => void) { |
46 | const storages = config.get('storage') | 46 | const storages = config.get('storage') |
47 | 47 | ||
48 | each(Object.keys(storages), function (key, callbackEach) { | 48 | each(Object.keys(storages), function (key, callbackEach) { |
@@ -51,7 +51,7 @@ function createDirectoriesIfNotExist (callback) { | |||
51 | }, callback) | 51 | }, callback) |
52 | } | 52 | } |
53 | 53 | ||
54 | function createOAuthClientIfNotExist (callback) { | 54 | function createOAuthClientIfNotExist (callback: (err: Error) => void) { |
55 | clientsExist(function (err, exist) { | 55 | clientsExist(function (err, exist) { |
56 | if (err) return callback(err) | 56 | if (err) return callback(err) |
57 | 57 | ||
@@ -80,7 +80,7 @@ function createOAuthClientIfNotExist (callback) { | |||
80 | }) | 80 | }) |
81 | } | 81 | } |
82 | 82 | ||
83 | function createOAuthAdminIfNotExist (callback) { | 83 | function createOAuthAdminIfNotExist (callback: (err: Error) => void) { |
84 | usersExist(function (err, exist) { | 84 | usersExist(function (err, exist) { |
85 | if (err) return callback(err) | 85 | if (err) return callback(err) |
86 | 86 | ||