Rename webhook related constant

This commit is contained in:
Alex Tselegidis 2023-10-26 05:12:10 +02:00
parent c37757e969
commit 7eb048e1d2
3 changed files with 7 additions and 7 deletions

View file

@ -111,8 +111,8 @@ define('WEBHOOK_CUSTOMER_SAVE', 'customer_save');
define('WEBHOOK_CUSTOMER_DELETE', 'customer_delete');
define('WEBHOOK_SERVICE_SAVE', 'service_save');
define('WEBHOOK_SERVICE_DELETE', 'service_delete');
define('WEBHOOK_CATEGORY_SAVE', 'category_save');
define('WEBHOOK_CATEGORY_DELETE', 'category_delete');
define('WEBHOOK_SERVICE_CATEGORY_SAVE', 'service_category_save');
define('WEBHOOK_SERVICE_CATEGORY_DELETE', 'service_category_delete');
define('WEBHOOK_PROVIDER_SAVE', 'provider_save');
define('WEBHOOK_PROVIDER_DELETE', 'provider_delete');
define('WEBHOOK_SECRETARY_SAVE', 'secretary_save');

View file

@ -129,7 +129,7 @@ class Service_categories extends EA_Controller {
$service_category = $this->service_categories_model->find($service_category_id);
$this->webhooks_client->trigger(WEBHOOK_CATEGORY_SAVE, $service_category);
$this->webhooks_client->trigger(WEBHOOK_SERVICE_CATEGORY_SAVE, $service_category);
json_response([
'success' => TRUE,
@ -166,7 +166,7 @@ class Service_categories extends EA_Controller {
$service_category = $this->service_categories_model->find($service_category_id);
$this->webhooks_client->trigger(WEBHOOK_CATEGORY_SAVE, $service_category);
$this->webhooks_client->trigger(WEBHOOK_SERVICE_CATEGORY_SAVE, $service_category);
json_response([
'success' => TRUE,
@ -197,7 +197,7 @@ class Service_categories extends EA_Controller {
$this->service_categories_model->delete($service_category_id);
$this->webhooks_client->trigger(WEBHOOK_CATEGORY_DELETE, $service_category);
$this->webhooks_client->trigger(WEBHOOK_SERVICE_CATEGORY_DELETE, $service_category);
json_response([
'success' => TRUE,

View file

@ -79,8 +79,8 @@ class Webhooks extends EA_Controller {
WEBHOOK_CUSTOMER_DELETE,
WEBHOOK_SERVICE_SAVE,
WEBHOOK_SERVICE_DELETE,
WEBHOOK_CATEGORY_SAVE,
WEBHOOK_CATEGORY_DELETE,
WEBHOOK_SERVICE_CATEGORY_SAVE,
WEBHOOK_SERVICE_CATEGORY_DELETE,
WEBHOOK_PROVIDER_SAVE,
WEBHOOK_PROVIDER_DELETE,
WEBHOOK_SECRETARY_SAVE,