fix(core): update

This commit is contained in:
Philipp Kunz 2020-07-30 09:27:30 +00:00
parent 546f7f4fc7
commit ccc5c33656

View File

@ -47,7 +47,7 @@ export class TypedHandler<T extends plugins.typedRequestInterfaces.ITypedRequest
typedRequestArg.response = response;
}
typedRequestArg.correlation.phase = 'response';
typedRequestArg?.correlation?.phase ? typedRequestArg.correlation.phase = 'response' : null;
return typedRequestArg;
}