Fix the issue with verifyMssKey overriding is_approved

The verifyMssKey side effect handler was overriding the value
of is_approved when updating the state.

[MAILPOET-4633]
This commit is contained in:
Sam Najian
2022-12-16 21:20:07 +01:00
committed by Aschepikov
parent e7e4276bf2
commit cf5718122f
3 changed files with 25 additions and 4 deletions

View File

@ -126,7 +126,7 @@ class Services extends APIEndpoint {
}
if ($successMessage) {
return $this->successResponse(['message' => $successMessage, 'state' => $state]);
return $this->successResponse(['message' => $successMessage, 'state' => $state, 'result' => $result]);
}
switch ($state) {