mirror of
https://github.com/captbaritone/webamp
synced 2024-11-22 16:20:49 +00:00
Ensure we await skin readme in metadata endpoint
This commit is contained in:
parent
759520b3fa
commit
269f9931a3
@ -176,11 +176,16 @@ router.get(
|
||||
res.status(404).json();
|
||||
return;
|
||||
}
|
||||
const [nsfw, fileName, readme] = await Promise.all([
|
||||
skin.getIsNsfw(),
|
||||
skin.getFileName(),
|
||||
skin.getReadme(),
|
||||
]);
|
||||
res.json({
|
||||
md5: skin.getMd5(),
|
||||
nsfw: await skin.getIsNsfw(),
|
||||
fileName: await skin.getFileName(),
|
||||
readme: skin.getReadme(),
|
||||
nsfw,
|
||||
fileName,
|
||||
readme,
|
||||
});
|
||||
})
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user