[Base] Make getting GitHub API info async

This commit is contained in:
Ducko 2021-03-19 20:38:27 +00:00 committed by Lexi Sother
parent 3e86694f00
commit 85365c8ace
No known key found for this signature in database
GPG Key ID: 355968D14144B739
1 changed files with 4 additions and 2 deletions

View File

@ -124,8 +124,8 @@ for (const parentRepo of ModuleRepos) {
continue;
}
const githubInfo = await getGithubInfo(repo[0]);
let githubInfo = getGithubInfo(repo[0]);
// console.log(repo);
const url = `https://github.com/${repo[0]}.git`;
@ -181,6 +181,8 @@ for (const parentRepo of ModuleRepos) {
const jsHash = createHash('sha512').update(jsCode).digest('hex');
githubInfo = await githubInfo; // GitHub info is gotten async during other stuff to reduce time
const manifestJson = {
name: manifest.name,
description: manifest.description,