refactor(worker): Move blurhash processing to worker

This commit is contained in:
Jesse Wierzbinski 2025-01-06 19:45:32 +01:00
parent 8188a6ffc7
commit b086e65404
No known key found for this signature in database
8 changed files with 34 additions and 37 deletions

View file

@ -189,7 +189,7 @@ export class Attachment extends BaseInterface<typeof Attachments> {
const mediaManager = new MediaManager(config);
const { path, blurhash } = await mediaManager.addFile(file);
const { path } = await mediaManager.addFile(file);
const url = Attachment.getUrl(path);
@ -208,7 +208,6 @@ export class Attachment extends BaseInterface<typeof Attachments> {
mimeType: file.type,
description: options?.description ?? "",
size: file.size,
blurhash: blurhash ?? undefined,
width: metadata?.width ?? undefined,
height: metadata?.height ?? undefined,
});