Skip to content

Commit

Permalink
Ah, need to pass in custom property
Browse files Browse the repository at this point in the history
  • Loading branch information
mbudm committed Aug 28, 2019
1 parent 5f9d9d7 commit 9d3a060
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fotos/common/invokeGetIndex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {

export function getInvokeGetIndexParams(ctx: ITraceMeta): InvocationRequest {
return {
ClientContext: JSON.stringify(ctx),
ClientContext: JSON.stringify({ custom: ctx}),
FunctionName: `${process.env.LAMBDA_PREFIX}indexes`,
InvocationType: INVOCATION_REQUEST_RESPONSE,
LogType: "Tail",
Expand Down
2 changes: 1 addition & 1 deletion fotos/indexes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export async function getItem(event: APIGatewayProxyEvent, context: Context, cal
JSON.parse(context.clientContext.Custom) :
null ;
// tslint:disable-next-line:no-console
console.log("client context", context);
console.log("client context - custom?", context);
const loggerBaseParams: ILoggerBaseParams = {
id: uuid.v1(),
name: "getItem",
Expand Down

0 comments on commit 9d3a060

Please sign in to comment.