Fix incorrect JanitorAI/JannyAI import due to incorrect HTTP header

This commit is contained in:
Alex Yancey 2024-08-03 05:29:33 -07:00
parent 68de3fed59
commit ace6e9d18d

View File

@ -434,7 +434,7 @@ async function downloadJannyCharacter(uuid) {
const imageResult = await fetch(downloadResult.downloadUrl);
const buffer = await imageResult.buffer();
const fileName = `${sanitize(uuid)}.png`;
const fileType = result.headers.get('content-type');
const fileType = imageResult.headers.get('content-type');
return { buffer, fileName, fileType };
}