Fixed: Dont throw exception when deleting a couse via api
This commit is contained in:
parent
d348aea5f6
commit
d96457dd33
|
@ -268,7 +268,7 @@ class Api {
|
||||||
{
|
{
|
||||||
$response = $this->http()->delete(self::$url."/ica/rest/nami/mitglied-ausbildung/filtered-for-navigation/mitglied/mitglied/{$memberId}/{$courseId}");
|
$response = $this->http()->delete(self::$url."/ica/rest/nami/mitglied-ausbildung/filtered-for-navigation/mitglied/mitglied/{$memberId}/{$courseId}");
|
||||||
|
|
||||||
if (data_get($response->json(), 'success') !== true) {
|
if ($response->json() !== null && data_get($response->json(), 'success') !== true) {
|
||||||
$this->exception('Course deletion failed', [], $response->json());
|
$this->exception('Course deletion failed', [], $response->json());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue