Revert to sync file read in card parser

#3747
This commit is contained in:
Cohee
2025-03-24 02:03:05 +02:00
parent d4b8983d47
commit c69623278f

View File

@ -88,7 +88,7 @@ export const parse = async (cardUrl, format) => {
switch (fileFormat) {
case 'png': {
const buffer = await fs.promises.readFile(cardUrl);
const buffer = fs.readFileSync(cardUrl);
return read(buffer);
}
}