mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
refactor(api): 🔥 Simplify oauth authorize handler
This commit is contained in:
parent
44d7264b79
commit
c14621ee06
3 changed files with 82 additions and 75 deletions
|
|
@ -78,12 +78,12 @@ export class MediaManager {
|
|||
|
||||
for (const preprocessor of this.preprocessors) {
|
||||
const result = await preprocessor.process(processedFile);
|
||||
|
||||
if ("blurhash" in result) {
|
||||
blurhash = result.blurhash as string;
|
||||
processedFile = result.file;
|
||||
} else {
|
||||
processedFile = result.file;
|
||||
}
|
||||
|
||||
processedFile = result.file;
|
||||
}
|
||||
|
||||
const uploadResult = await this.driver.addFile(processedFile);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue