Skip to content

Commit

Permalink
[TASK] Continue on error
Browse files Browse the repository at this point in the history
  • Loading branch information
lolamtisch committed Jan 2, 2024
1 parent 5f9bbb7 commit 2fbc2ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions overwrite/compileChanged.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ else {
for (const error of errors.filter(error => !error.name.includes("TS")))
actions.error(error);

if (errors.length)
actions.setFailed("Some Presences failed to compile, exiting...");
//if (errors.length)
//actions.setFailed("Some Presences failed to compile, exiting...");
}

export function getDiff(): string[] {
Expand Down
5 changes: 3 additions & 2 deletions presenceUpdater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const readFile = (path: string): string =>

compile();

const compiledPresences = await Promise.all(
const compiledPresences = (await Promise.all(
dbDiff.map(async (file) => {
let metadata = file[0];
const path = file[1],
Expand Down Expand Up @@ -141,13 +141,14 @@ const readFile = (path: string): string =>

return resJson;
})
);
)).filter((el) => el !== null);

console.log("\nUPDATING...\n");

try {
const metad: any[] = [];

if(compiledPresences.length < 100) throw `Less than 100 Presences (${compiledPresences.length})`;

compiledPresences.forEach((el) => {
console.log(`./Extension/Pages/${el.name}/index.js`);
Expand Down

0 comments on commit 2fbc2ae

Please sign in to comment.