im so tired
This commit is contained in:
parent
2590817cc1
commit
b3a368973e
1 changed files with 18 additions and 13 deletions
|
@ -27,6 +27,7 @@ export async function createThumbnail(upload: Upload) {
|
|||
.replaceAll('+', '-')
|
||||
.replaceAll('/', '_');
|
||||
|
||||
try {
|
||||
const response = await fetch(`${env.THUMBOR_ENDPOINT}/${SIGNATURE}/${options}/${url}`);
|
||||
const arrayBuffer = await response.arrayBuffer();
|
||||
|
||||
|
@ -43,6 +44,10 @@ export async function createThumbnail(upload: Upload) {
|
|||
'Content-Type': 'image/webp'
|
||||
});
|
||||
|
||||
processing.delete(upload.id);
|
||||
return record;
|
||||
} catch (_) {
|
||||
console.log(_);
|
||||
}
|
||||
|
||||
processing.delete(upload.id);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue