diff options
Diffstat (limited to 'server/models/video/thumbnail.ts')
-rw-r--r-- | server/models/video/thumbnail.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/video/thumbnail.ts b/server/models/video/thumbnail.ts index b767a6874..cf2040cbf 100644 --- a/server/models/video/thumbnail.ts +++ b/server/models/video/thumbnail.ts | |||
@@ -1,6 +1,6 @@ | |||
1 | import { join } from 'path' | 1 | import { join } from 'path' |
2 | import { AfterDestroy, AllowNull, BelongsTo, Column, CreatedAt, Default, ForeignKey, Model, Table, UpdatedAt } from 'sequelize-typescript' | 2 | import { AfterDestroy, AllowNull, BelongsTo, Column, CreatedAt, Default, ForeignKey, Model, Table, UpdatedAt } from 'sequelize-typescript' |
3 | import { STATIC_PATHS, WEBSERVER } from '../../initializers/constants' | 3 | import { LAZY_STATIC_PATHS, STATIC_PATHS, WEBSERVER } from '../../initializers/constants' |
4 | import { logger } from '../../helpers/logger' | 4 | import { logger } from '../../helpers/logger' |
5 | import { remove } from 'fs-extra' | 5 | import { remove } from 'fs-extra' |
6 | import { CONFIG } from '../../initializers/config' | 6 | import { CONFIG } from '../../initializers/config' |
@@ -87,7 +87,7 @@ export class ThumbnailModel extends Model<ThumbnailModel> { | |||
87 | [ThumbnailType.PREVIEW]: { | 87 | [ThumbnailType.PREVIEW]: { |
88 | label: 'preview', | 88 | label: 'preview', |
89 | directory: CONFIG.STORAGE.PREVIEWS_DIR, | 89 | directory: CONFIG.STORAGE.PREVIEWS_DIR, |
90 | staticPath: STATIC_PATHS.PREVIEWS | 90 | staticPath: LAZY_STATIC_PATHS.PREVIEWS |
91 | } | 91 | } |
92 | } | 92 | } |
93 | 93 | ||