Update the request params (now using snake_case).

This commit is contained in:
Alex Tselegidis 2022-01-17 21:19:46 +01:00
parent 777d15423c
commit 398b85363f

View file

@ -222,8 +222,8 @@ App.Http.Calendar = (function () {
const data = { const data = {
csrf_token: App.Vars.csrf_token, csrf_token: App.Vars.csrf_token,
startDate: moment(startDate).format('YYYY-MM-DD'), start_date: moment(startDate).format('YYYY-MM-DD'),
endDate: moment(endDate).format('YYYY-MM-DD') end_date: moment(endDate).format('YYYY-MM-DD')
}; };
return $.post(url, data); return $.post(url, data);