Merge pull request 'im so tired' (#8) from development into master

Reviewed-on: #8
This commit is contained in:
cirroskais 2024-08-29 11:01:02 +00:00
commit 215d36f20a

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