fix(core): update

This commit is contained in:
Philipp Kunz 2020-07-30 08:46:45 +00:00
parent e57c332d82
commit 8536060ce4

View File

@ -92,7 +92,7 @@ export class TypedRouter {
* @param typedRequestArg
*/
public async routeAndAddResponse(typedRequestArg: plugins.typedRequestInterfaces.ITypedRequest) {
if (typedRequestArg.correlation.phase === 'request') {
if (!typedRequestArg?.correlation?.phase || typedRequestArg.correlation.phase === 'request') {
const typedHandler = this.getTypedHandlerForMethod(typedRequestArg.method);
if (!typedHandler) {