Skip to content

Commit 693dee0

Browse files
fix type for test
1 parent 0233528 commit 693dee0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/trace/trigger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export function parseEventSource(event: any) {
126126
* parseEventSourceARN parses the triggering event to determine the event source's
127127
* ARN if available. Otherwise we stitch together the ARN
128128
*/
129-
export function parseEventSourceARN(source: string, event: any, context: Context) {
129+
export function parseEventSourceARN(source: string | undefined, event: any, context: Context) {
130130
const splitFunctionArn = context.invokedFunctionArn.split(":");
131131
const region = splitFunctionArn[3];
132132
const accountId = splitFunctionArn[4];

0 commit comments

Comments
 (0)