Skip to content

Commit

Permalink
fix(orchestrator): skip it if hardcoded specs do not exist (janus-idp#74
Browse files Browse the repository at this point in the history
)
  • Loading branch information
caponetto committed Jan 16, 2024
1 parent 083d690 commit 4562b56
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/orchestrator-backend/src/service/WorkflowService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ export class WorkflowService {
// We can list all spec files from FS but let's keep it simple for now
for (const relativePath of SPEC_FILES) {
const path = this.resolveResourcePath(relativePath);
if (!(await fs.pathExists(path))) {
continue;
}
const buffer = await fs.readFile(path);
const content = JSON.parse(buffer.toString('utf8'));
specs.push({ path, content });
Expand Down

0 comments on commit 4562b56

Please sign in to comment.