mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
refactor(worker): ⚡ Move blurhash processing to worker
This commit is contained in:
parent
8188a6ffc7
commit
b086e65404
8 changed files with 34 additions and 37 deletions
|
|
@ -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,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue