From ce3bfa01b45dd47ac5a14c3fcfdee90de2c22ed3 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Tue, 6 Oct 2020 21:33:46 +0000 Subject: [PATCH] fix(core): update --- ts/typedrequest.classes.typedrouter.ts | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/ts/typedrequest.classes.typedrouter.ts b/ts/typedrequest.classes.typedrouter.ts index d676d4d..9f50710 100644 --- a/ts/typedrequest.classes.typedrouter.ts +++ b/ts/typedrequest.classes.typedrouter.ts @@ -109,12 +109,16 @@ export class TypedRouter { this.fireEventInterestMap .findInterest(typedRequestArg.correlation.id) ?.fullfillInterest(typedRequestArg); - return { - ...typedRequestArg, - ...{ - method: 'nullPathFromResponse' - } - }; + } else { + console.log('received weirdly shaped request'); + console.log(typedRequestArg); + return {} } + return { + ...typedRequestArg, + ...{ + method: 'nullPathFromResponse', + }, + }; } }