refactor(api): 🔥 Simplify oauth authorize handler

This commit is contained in:
Jesse Wierzbinski 2024-12-30 16:47:48 +01:00
parent 44d7264b79
commit c14621ee06
No known key found for this signature in database
3 changed files with 82 additions and 75 deletions

View file

@ -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);