From 855a7e841a0dd4574fdafd45817d2ca628f91081 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Tue, 29 Oct 2024 00:44:34 +0900 Subject: [PATCH] Fix default sorting --- assets/js/http/admins_http_client.js | 2 +- assets/js/http/appointments_http_client.js | 2 +- assets/js/http/blocked_periods_http_client.js | 2 +- assets/js/http/customers_http_client.js | 2 +- assets/js/http/providers_http_client.js | 2 +- assets/js/http/secretaries_http_client.js | 2 +- assets/js/http/service_categories_http_client.js | 2 +- assets/js/http/services_http_client.js | 2 +- assets/js/http/settings_http_client.js | 2 +- assets/js/http/unavailabilities_http_client.js | 2 +- assets/js/http/webhooks_http_client.js | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/assets/js/http/admins_http_client.js b/assets/js/http/admins_http_client.js index b987f456..b3a22cac 100644 --- a/assets/js/http/admins_http_client.js +++ b/assets/js/http/admins_http_client.js @@ -98,7 +98,7 @@ App.Http.Admins = (function () { keyword, limit, offset, - order_by: orderBy, + order_by: orderBy || undefined, }; return $.post(url, data); diff --git a/assets/js/http/appointments_http_client.js b/assets/js/http/appointments_http_client.js index 9436cb9b..76026862 100644 --- a/assets/js/http/appointments_http_client.js +++ b/assets/js/http/appointments_http_client.js @@ -98,7 +98,7 @@ App.Http.Appointments = (function () { keyword, limit, offset, - order_by: orderBy, + order_by: orderBy || undefined, }; return $.post(url, data); diff --git a/assets/js/http/blocked_periods_http_client.js b/assets/js/http/blocked_periods_http_client.js index 8c3caddf..14eeb441 100644 --- a/assets/js/http/blocked_periods_http_client.js +++ b/assets/js/http/blocked_periods_http_client.js @@ -98,7 +98,7 @@ App.Http.BlockedPeriods = (function () { keyword, limit, offset, - order_by: orderBy, + order_by: orderBy || undefined, }; return $.post(url, data); diff --git a/assets/js/http/customers_http_client.js b/assets/js/http/customers_http_client.js index d6ad0f0d..46b6c388 100644 --- a/assets/js/http/customers_http_client.js +++ b/assets/js/http/customers_http_client.js @@ -98,7 +98,7 @@ App.Http.Customers = (function () { keyword, limit, offset, - order_by: orderBy, + order_by: orderBy || undefined, }; return $.post(url, data); diff --git a/assets/js/http/providers_http_client.js b/assets/js/http/providers_http_client.js index 3261d7ec..2b51afa8 100644 --- a/assets/js/http/providers_http_client.js +++ b/assets/js/http/providers_http_client.js @@ -98,7 +98,7 @@ App.Http.Providers = (function () { keyword, limit, offset, - order_by: orderBy, + order_by: orderBy || undefined, }; return $.post(url, data); diff --git a/assets/js/http/secretaries_http_client.js b/assets/js/http/secretaries_http_client.js index af2234bb..0dad0865 100644 --- a/assets/js/http/secretaries_http_client.js +++ b/assets/js/http/secretaries_http_client.js @@ -98,7 +98,7 @@ App.Http.Secretaries = (function () { keyword, limit, offset, - order_by: orderBy, + order_by: orderBy || undefined, }; return $.post(url, data); diff --git a/assets/js/http/service_categories_http_client.js b/assets/js/http/service_categories_http_client.js index 9d31bec7..9bda3b9e 100644 --- a/assets/js/http/service_categories_http_client.js +++ b/assets/js/http/service_categories_http_client.js @@ -98,7 +98,7 @@ App.Http.ServiceCategories = (function () { keyword, limit, offset, - order_by: orderBy, + order_by: orderBy || undefined, }; return $.post(url, data); diff --git a/assets/js/http/services_http_client.js b/assets/js/http/services_http_client.js index 878aa5e0..6211d5c5 100644 --- a/assets/js/http/services_http_client.js +++ b/assets/js/http/services_http_client.js @@ -98,7 +98,7 @@ App.Http.Services = (function () { keyword, limit, offset, - order_by: orderBy, + order_by: orderBy || undefined, }; return $.post(url, data); diff --git a/assets/js/http/settings_http_client.js b/assets/js/http/settings_http_client.js index f2937077..e42134b4 100644 --- a/assets/js/http/settings_http_client.js +++ b/assets/js/http/settings_http_client.js @@ -98,7 +98,7 @@ App.Http.Settings = (function () { keyword, limit, offset, - order_by: orderBy, + order_by: orderBy || undefined, }; return $.post(url, data); diff --git a/assets/js/http/unavailabilities_http_client.js b/assets/js/http/unavailabilities_http_client.js index 87c58cce..27a4b953 100644 --- a/assets/js/http/unavailabilities_http_client.js +++ b/assets/js/http/unavailabilities_http_client.js @@ -98,7 +98,7 @@ App.Http.Unavailabilities = (function () { keyword, limit, offset, - order_by: orderBy, + order_by: orderBy || undefined, }; return $.post(url, data); diff --git a/assets/js/http/webhooks_http_client.js b/assets/js/http/webhooks_http_client.js index 3ecb86a8..a23fb677 100644 --- a/assets/js/http/webhooks_http_client.js +++ b/assets/js/http/webhooks_http_client.js @@ -98,7 +98,7 @@ App.Http.Webhooks = (function () { keyword, limit, offset, - order_by: orderBy, + order_by: orderBy || undefined, }; return $.post(url, data);