diff --git a/flatisfy/web/js_src/api/index.js b/flatisfy/web/js_src/api/index.js index e96f552..27fca9d 100644 --- a/flatisfy/web/js_src/api/index.js +++ b/flatisfy/web/js_src/api/index.js @@ -123,7 +123,7 @@ export const updateFlatVisitDate = function (flatId, newVisitDate, callback) { 'Content-Type': 'application/json' }, body: JSON.stringify({ - visit_date: newVisitDate + visit_date: newVisitDate // eslint-disable-line camelcase }) } ).then(callback).catch(function (ex) { diff --git a/flatisfy/web/js_src/views/details.vue b/flatisfy/web/js_src/views/details.vue index 1956cd9..7ed3dd8 100644 --- a/flatisfy/web/js_src/views/details.vue +++ b/flatisfy/web/js_src/views/details.vue @@ -240,8 +240,8 @@ export default { altFormat: 'h:i K, M j, Y', altInput: true, enableTime: true, - onChange: selectedDates => this.updateFlatVisitDate(selectedDates.length > 0 ? selectedDates[0] : null), - }, + onChange: selectedDates => this.updateFlatVisitDate(selectedDates.length > 0 ? selectedDates[0] : null) + } } },