add alertcontact in uptimerobotservice
This commit is contained in:
1 parent
02dc8f76d1
commit
dfbff8b44e
1 file changed
+5
-4
@@ -97,10 +97,11 @@ class UptimeRobotApiService
|
|||||||
$alertContacts = explode(',', $alertContactsString);
|
$alertContacts = explode(',', $alertContactsString);
|
||||||
|
|
||||||
foreach ($alertContacts as $alertContactName) {
|
foreach ($alertContacts as $alertContactName) {
|
||||||
|
if (!empty($alertContactName)) {
|
||||||
$alertContact = $this->alertContactService->findbyName($alertContactName);
|
$alertContact = $this->alertContactService->findbyName($alertContactName);
|
||||||
if ($alertContact instanceof AlertContact) {
|
if ($alertContact instanceof AlertContact) {
|
||||||
$this->alertContacts[] = $alertContact;
|
$this->alertContacts[] = $alertContact;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user