aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/installer.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-06-10 22:15:25 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-06-10 22:15:25 +0200
commit69818c9394366b954b6ba3bd697bd9d2b09f2a16 (patch)
treead199a18ec3c322460d6f9523fc383ee562554e0 /server/initializers/installer.ts
parent4d4e5cd4dca78480ec7f40e747f424cd107376a4 (diff)
downloadPeerTube-69818c9394366b954b6ba3bd697bd9d2b09f2a16.tar.gz
PeerTube-69818c9394366b954b6ba3bd697bd9d2b09f2a16.tar.zst
PeerTube-69818c9394366b954b6ba3bd697bd9d2b09f2a16.zip
Type functions
Diffstat (limited to 'server/initializers/installer.ts')
-rw-r--r--server/initializers/installer.ts8
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'
9import { clientsExist, usersExist } from './checker' 9import { clientsExist, usersExist } from './checker'
10import { logger, createCertsIfNotExist, root } from '../helpers' 10import { logger, createCertsIfNotExist, root } from '../helpers'
11 11
12function installApplication (callback) { 12function 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
45function createDirectoriesIfNotExist (callback) { 45function 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
54function createOAuthClientIfNotExist (callback) { 54function 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
83function createOAuthAdminIfNotExist (callback) { 83function 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