We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17a8035 commit f32ead9Copy full SHA for f32ead9
src/Aspect/ResponseAspect.php
@@ -68,12 +68,13 @@ public function process(ProceedingJoinPoint $proceedingJoinPoint)
68
if (!$this->config['enabled']) {
69
return $proceedingJoinPoint->process();
70
}
71
-
72
- $eventSqlList = Context::get($sqlKey);
+ $response = $proceedingJoinPoint->process();
+ if (!($eventSqlList = Context::get($sqlKey))) {
73
+ return $response;
74
+ }
75
76
$explains = [];
77
$channel = new Channel();
- $response = $proceedingJoinPoint->process();
78
$oldBody = json_decode(
79
$response->getBody()->getContents(),
80
true,
0 commit comments