mirror of
https://github.com/NovaGM/ModuleBuilder.git
synced 2024-08-15 00:23:33 +00:00
[Base] Make getting GitHub API info async
This commit is contained in:
parent
3e86694f00
commit
85365c8ace
1 changed files with 4 additions and 2 deletions
|
@ -124,7 +124,7 @@ for (const parentRepo of ModuleRepos) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
const githubInfo = await getGithubInfo(repo[0]);
|
let githubInfo = getGithubInfo(repo[0]);
|
||||||
|
|
||||||
// console.log(repo);
|
// console.log(repo);
|
||||||
|
|
||||||
|
@ -181,6 +181,8 @@ for (const parentRepo of ModuleRepos) {
|
||||||
|
|
||||||
const jsHash = createHash('sha512').update(jsCode).digest('hex');
|
const jsHash = createHash('sha512').update(jsCode).digest('hex');
|
||||||
|
|
||||||
|
githubInfo = await githubInfo; // GitHub info is gotten async during other stuff to reduce time
|
||||||
|
|
||||||
const manifestJson = {
|
const manifestJson = {
|
||||||
name: manifest.name,
|
name: manifest.name,
|
||||||
description: manifest.description,
|
description: manifest.description,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue