diff options
Diffstat (limited to 'server/initializers/installer.ts')
-rw-r--r-- | server/initializers/installer.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/server/initializers/installer.ts b/server/initializers/installer.ts index b0084b368..1f513a9c3 100644 --- a/server/initializers/installer.ts +++ b/server/initializers/installer.ts | |||
@@ -33,7 +33,8 @@ export { | |||
33 | // --------------------------------------------------------------------------- | 33 | // --------------------------------------------------------------------------- |
34 | 34 | ||
35 | function removeCacheDirectories () { | 35 | function removeCacheDirectories () { |
36 | const cacheDirectories = CACHE.DIRECTORIES | 36 | const cacheDirectories = Object.keys(CACHE) |
37 | .map(k => CACHE[k].DIRECTORY) | ||
37 | 38 | ||
38 | const tasks: Promise<any>[] = [] | 39 | const tasks: Promise<any>[] = [] |
39 | 40 | ||
@@ -48,7 +49,8 @@ function removeCacheDirectories () { | |||
48 | 49 | ||
49 | function createDirectoriesIfNotExist () { | 50 | function createDirectoriesIfNotExist () { |
50 | const storage = CONFIG.STORAGE | 51 | const storage = CONFIG.STORAGE |
51 | const cacheDirectories = CACHE.DIRECTORIES | 52 | const cacheDirectories = Object.keys(CACHE) |
53 | .map(k => CACHE[k].DIRECTORY) | ||
52 | 54 | ||
53 | const tasks = [] | 55 | const tasks = [] |
54 | for (const key of Object.keys(storage)) { | 56 | for (const key of Object.keys(storage)) { |