Skip to content

Commit

Permalink
Merge pull request #72 from renatovassao/fix/clientExtraMap
Browse files Browse the repository at this point in the history
node client extra property was not being sent to server
  • Loading branch information
dgadelha committed Apr 22, 2020
2 parents 3157745 + e0af782 commit 1461239
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node-runtime/src/http-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class SdkgenHttpClient {
args: encode(this.astJson.typeTable, `${functionName}.args`, func.args, args),
deviceInfo: ctx && ctx.request ? ctx.request.deviceInfo : { id: hostname(), type: "node" },
extra: {
...this.extra,
...[...this.extra.entries()].reduce<{ [key: string]: unknown }>((obj, [key, value]) => (obj[key] = value, obj), {}),
...(ctx && ctx.request ? ctx.request.extra : {}),
},
name: functionName,
Expand Down

0 comments on commit 1461239

Please sign in to comment.