im so tired

This commit is contained in:
cirroskais 2024-08-29 07:00:31 -04:00
parent 2590817cc1
commit b3a368973e
No known key found for this signature in database
GPG key ID: 5FC73EBF2678E33D

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