aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/installer.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers/installer.ts')
-rw-r--r--server/initializers/installer.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/server/initializers/installer.ts b/server/initializers/installer.ts
index cd2c942fd..07af96b68 100644
--- a/server/initializers/installer.ts
+++ b/server/initializers/installer.ts
@@ -6,7 +6,7 @@ import { UserModel } from '../models/account/user'
6import { ApplicationModel } from '../models/application/application' 6import { ApplicationModel } from '../models/application/application'
7import { OAuthClientModel } from '../models/oauth/oauth-client' 7import { OAuthClientModel } from '../models/oauth/oauth-client'
8import { applicationExist, clientsExist, usersExist } from './checker-after-init' 8import { applicationExist, clientsExist, usersExist } from './checker-after-init'
9import { CACHE, CONFIG, HLS_STREAMING_PLAYLIST_DIRECTORY, LAST_MIGRATION_VERSION } from './constants' 9import { FILES_CACHE, CONFIG, HLS_STREAMING_PLAYLIST_DIRECTORY, LAST_MIGRATION_VERSION } from './constants'
10import { sequelizeTypescript } from './database' 10import { sequelizeTypescript } from './database'
11import { remove, ensureDir } from 'fs-extra' 11import { remove, ensureDir } from 'fs-extra'
12 12
@@ -42,8 +42,8 @@ export {
42// --------------------------------------------------------------------------- 42// ---------------------------------------------------------------------------
43 43
44function removeCacheAndTmpDirectories () { 44function removeCacheAndTmpDirectories () {
45 const cacheDirectories = Object.keys(CACHE) 45 const cacheDirectories = Object.keys(FILES_CACHE)
46 .map(k => CACHE[k].DIRECTORY) 46 .map(k => FILES_CACHE[k].DIRECTORY)
47 47
48 const tasks: Promise<any>[] = [] 48 const tasks: Promise<any>[] = []
49 49
@@ -60,8 +60,8 @@ function removeCacheAndTmpDirectories () {
60 60
61function createDirectoriesIfNotExist () { 61function createDirectoriesIfNotExist () {
62 const storage = CONFIG.STORAGE 62 const storage = CONFIG.STORAGE
63 const cacheDirectories = Object.keys(CACHE) 63 const cacheDirectories = Object.keys(FILES_CACHE)
64 .map(k => CACHE[k].DIRECTORY) 64 .map(k => FILES_CACHE[k].DIRECTORY)
65 65
66 const tasks: Promise<void>[] = [] 66 const tasks: Promise<void>[] = []
67 for (const key of Object.keys(storage)) { 67 for (const key of Object.keys(storage)) {