Updated admin module to use new fetchJson.
This commit is contained in:
parent
8354c3f9fe
commit
226c100c72
@ -24,7 +24,7 @@ async function getPackage(name) {
|
|||||||
cache[name] = result;
|
cache[name] = result;
|
||||||
return result;
|
return result;
|
||||||
}, (error) => {
|
}, (error) => {
|
||||||
if (error.statusCode === 404) {
|
if (error.status === 404) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
throw error;
|
throw error;
|
||||||
|
Loading…
Reference in New Issue
Block a user