Skip to content

Commit

Permalink
Fix Node Temporal runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
freeqaz committed Oct 27, 2020
1 parent cd67c7e commit c4210cb
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions api/runtimes/nodejs10.x/index.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
const main = require("./refinery_main").main;
const main = require('./refinery_main').main;

exports.handler = async (event) => {
const result = await main(
event.hasOwnProperty("block_input") ? event['block_input'] : {},
event.hasOwnProperty("backpack") ? event['backpack'] : {}
);
const response = {
result: result,
backpack: backpack
};
return JSON.stringify(response)
const backpack = event.hasOwnProperty('backpack') ? event['backpack'] : {};
const result = await main(
event.hasOwnProperty('block_input') ? event['block_input'] : {},
backpack
);
const response = {
result: result,
backpack: backpack
};
return JSON.stringify(response)
};

0 comments on commit c4210cb

Please sign in to comment.