api: fix errors from refactor + PISTON_ALIAS envvar

This commit is contained in:
Thomas Hobson 2021-03-13 20:57:21 +13:00
parent c6610671fa
commit 3ae32aad3f
No known key found for this signature in database
GPG key ID: 9F1FD9D87950DB6F
3 changed files with 11 additions and 6 deletions

View file

@ -23,7 +23,7 @@ const get_package_list = async () => {
});
};
const get_package async (lang, version) => {
const get_package = async (lang, version) => {
const packages = await get_package_list();
const candidates = packages