forked from mirrors/easyappointments
The delete model method does not return a result any more.
This commit is contained in:
parent
4ed7465784
commit
306e94a082
7 changed files with 11 additions and 6 deletions
|
@ -207,9 +207,13 @@ class Appointments extends API_V1_Controller {
|
|||
try
|
||||
{
|
||||
$appointment = $this->appointments_model->find($id);
|
||||
|
||||
$service = $this->services_model->find($appointment['id_services']);
|
||||
|
||||
$provider = $this->providers_model->find($appointment['id_users_provider']);
|
||||
|
||||
$customer = $this->customers_model->find($appointment['id_users_customer']);
|
||||
|
||||
$settings = [
|
||||
'company_name' => setting('company_name'),
|
||||
'company_email' => setting('company_email'),
|
||||
|
@ -221,6 +225,7 @@ class Appointments extends API_V1_Controller {
|
|||
$this->appointments_model->delete($id);
|
||||
|
||||
$this->synchronization->sync_appointment_deleted($appointment, $provider);
|
||||
|
||||
$this->notifications->notify_appointment_deleted($appointment, $service, $provider, $customer, $settings);
|
||||
|
||||
$response = new Response([
|
||||
|
|
|
@ -150,7 +150,7 @@ class Categories extends API_V1_Controller {
|
|||
{
|
||||
try
|
||||
{
|
||||
$result = $this->services_model->delete_category($id);
|
||||
$this->services_model->delete_category($id);
|
||||
|
||||
$response = new Response([
|
||||
'code' => 200,
|
||||
|
|
|
@ -150,7 +150,7 @@ class Customers extends API_V1_Controller {
|
|||
{
|
||||
try
|
||||
{
|
||||
$result = $this->customers_model->delete($id);
|
||||
$this->customers_model->delete($id);
|
||||
|
||||
$response = new Response([
|
||||
'code' => 200,
|
||||
|
|
|
@ -165,7 +165,7 @@ class Providers extends API_V1_Controller {
|
|||
{
|
||||
try
|
||||
{
|
||||
$result = $this->providers_model->delete($id);
|
||||
$this->providers_model->delete($id);
|
||||
|
||||
$response = new Response([
|
||||
'code' => 200,
|
||||
|
|
|
@ -160,7 +160,7 @@ class Secretaries extends API_V1_Controller {
|
|||
{
|
||||
try
|
||||
{
|
||||
$result = $this->secretaries_model->delete($id);
|
||||
$this->secretaries_model->delete($id);
|
||||
|
||||
$response = new Response([
|
||||
'code' => 200,
|
||||
|
|
|
@ -150,7 +150,7 @@ class Services extends API_V1_Controller {
|
|||
{
|
||||
try
|
||||
{
|
||||
$result = $this->services_model->delete($id);
|
||||
$this->services_model->delete($id);
|
||||
|
||||
$response = new Response([
|
||||
'code' => 200,
|
||||
|
|
|
@ -150,7 +150,7 @@ class Unavailabilities extends API_V1_Controller {
|
|||
{
|
||||
try
|
||||
{
|
||||
$result = $this->appointments_model->delete($id);
|
||||
$this->appointments_model->delete($id);
|
||||
|
||||
$response = new Response([
|
||||
'code' => 200,
|
||||
|
|
Loading…
Reference in a new issue