diff options
Diffstat (limited to 'server/models')
-rw-r--r-- | server/models/actor/actor-image.ts | 2 | ||||
-rw-r--r-- | server/models/video/thumbnail.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/server/models/actor/actor-image.ts b/server/models/actor/actor-image.ts index 9d44ef4d1..f2b3b2f4b 100644 --- a/server/models/actor/actor-image.ts +++ b/server/models/actor/actor-image.ts | |||
@@ -91,7 +91,7 @@ export class ActorImageModel extends Model<Partial<AttributesOnly<ActorImageMode | |||
91 | 91 | ||
92 | // Don't block the transaction | 92 | // Don't block the transaction |
93 | instance.removeImage() | 93 | instance.removeImage() |
94 | .catch(err => logger.error('Cannot remove actor image file %s.', instance.filename, err)) | 94 | .catch(err => logger.error('Cannot remove actor image file %s.', instance.filename, { err })) |
95 | } | 95 | } |
96 | 96 | ||
97 | static loadByName (filename: string) { | 97 | static loadByName (filename: string) { |
diff --git a/server/models/video/thumbnail.ts b/server/models/video/thumbnail.ts index 05c58cf19..f33bd3179 100644 --- a/server/models/video/thumbnail.ts +++ b/server/models/video/thumbnail.ts | |||
@@ -127,7 +127,7 @@ export class ThumbnailModel extends Model<Partial<AttributesOnly<ThumbnailModel> | |||
127 | 127 | ||
128 | // Don't block the transaction | 128 | // Don't block the transaction |
129 | instance.removeThumbnail() | 129 | instance.removeThumbnail() |
130 | .catch(err => logger.error('Cannot remove thumbnail file %s.', instance.filename, err)) | 130 | .catch(err => logger.error('Cannot remove thumbnail file %s.', instance.filename, { err })) |
131 | } | 131 | } |
132 | 132 | ||
133 | static loadByFilename (filename: string, thumbnailType: ThumbnailType): Promise<MThumbnail> { | 133 | static loadByFilename (filename: string, thumbnailType: ThumbnailType): Promise<MThumbnail> { |