Added Notify Admin webhook for XML Instantiation failure
This commit is contained in:
+1
-1
@@ -45,6 +45,7 @@ class DecWeb {
|
|||||||
|
|
||||||
if ($this->settings->count() === 0) {
|
if ($this->settings->count() === 0) {
|
||||||
|
|
||||||
|
$this->sendWebHookAlert("Notifying Admin...", "DecWebSync : Unable to initialize settings");
|
||||||
error_log("DecWebSync : Unable to initialize settings");
|
error_log("DecWebSync : Unable to initialize settings");
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
@@ -1089,7 +1090,6 @@ class DecWeb {
|
|||||||
|
|
||||||
$this->log("Migrating Purchased Services from decweb");
|
$this->log("Migrating Purchased Services from decweb");
|
||||||
|
|
||||||
// $this->realestatedatainc_connection->exec("TRUNCATE TABLE usersubscriptions");
|
|
||||||
$this->realestatedatainc_connection->exec("delete from usersubscriptions where usersubscription_user != 1");
|
$this->realestatedatainc_connection->exec("delete from usersubscriptions where usersubscription_user != 1");
|
||||||
|
|
||||||
$purchasedservices = $this->getPurchasedServices();
|
$purchasedservices = $this->getPurchasedServices();
|
||||||
|
|||||||
Reference in New Issue
Block a user