Skip to content

Commit

Permalink
Missing function argument
Browse files Browse the repository at this point in the history
  • Loading branch information
numtel committed Sep 20, 2024
1 parent 0accabf commit f0da48f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "circuitscan-pipeline-runner",
"version": "0.0.2",
"version": "0.0.3",
"main": "index.js",
"type": "module",
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ async function pipelineWrapper() {
status.startMemoryLogs(10000);
try {
const pkgName = await module.default({ payload }, { status });
await saveResponse({
await saveResponse(payload.requestId, {
statusCode: 200,
body: JSON.stringify({
pkgName,
}),
});
} catch(error) {
status.log(error.toString());
await saveResponse({
await saveResponse(payload.requestId, {
statusCode: 500,
body: JSON.stringify({
errorType: 'error',
Expand Down

0 comments on commit f0da48f

Please sign in to comment.