Skip to content

Commit

Permalink
more stupid /missing format fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
3vorp committed Dec 16, 2023
1 parent a8b4cea commit 853368b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/helpers/functions/missing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ export async function computeMissingResults(
const defaultRepo = repo.default[edition];
const requestRepo = repo[pack][edition];

const baseData = { pack, edition, version };
const baseData = { pack, edition };
// pack doesn't support edition yet
if (!requestRepo)
return {
results: [`${formatPack(pack).name} doesn't support ${edition} edition.`],
data: { ...baseData, completion: 0 },
data: { ...baseData, version, completion: 0 },
};

const basePath = join(process.cwd(), BASE_REPOS_PATH);
Expand Down Expand Up @@ -128,6 +128,7 @@ export async function computeMissingResults(
return {
data: {
...baseData,
version,
completion: Number((100 * (1 - diffResult.length / defaultTextures.length)).toFixed(2)),
total: defaultTextures.length,
},
Expand Down

0 comments on commit 853368b

Please sign in to comment.