im so tired #8

Merged
cirroskais merged 1 commit from development into master 2024-08-29 11:01:02 +00:00

View file

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