Skip to content

Commit

Permalink
Pretty print returned env
Browse files Browse the repository at this point in the history
  • Loading branch information
FyreByrd committed Feb 21, 2025
1 parent 171b1bc commit acb0706
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
11 changes: 9 additions & 2 deletions source/SIL.AppBuilder.Portal/node-server/job-executors/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@ export async function product(job: Job<BullMQ.Build.Product>): Promise<unknown>
}
job.updateProgress(100);
return {
response,
response: {
...response,
environment:
response.responseType !== 'error' ? JSON.parse(response['environment'] ?? '{}') : undefined
},
params,
env
};
Expand Down Expand Up @@ -225,6 +229,9 @@ export async function check(job: Job<BullMQ.Build.Check>): Promise<unknown> {
}
}
job.updateProgress(100);
return response;
return {
...response,
environment: JSON.parse(response['environment'] ?? '{}')
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,11 @@ export async function product(job: Job<BullMQ.Publish.Product>): Promise<unknown
}
job.updateProgress(100);
return {
response,
response: {
...response,
environment:
response.responseType !== 'error' ? JSON.parse(response['environment'] ?? '{}') : undefined
},
params,
env
};
Expand Down Expand Up @@ -212,6 +216,9 @@ export async function check(job: Job<BullMQ.Publish.Check>): Promise<unknown> {
});
}
job.updateProgress(100);
return response;
return {
...response,
environment: JSON.parse(response['environment'] ?? '{}')
};
}
}

0 comments on commit acb0706

Please sign in to comment.