Skip to content

Commit 15b0c55

Browse files
committed
Drop unused Requests.updateBooking method
1 parent 31d7a81 commit 15b0c55

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

htdocs/general/server-requests.js

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1493,34 +1493,6 @@ export const Requests = {
14931493
}
14941494
},
14951495

1496-
// updateBooking
1497-
updateBooking: function (id = '4079', input = {bookable: '3001', owner: '1002'}) {
1498-
// e.g.
1499-
/*
1500-
Server.bookingService.updateNow({
1501-
"id": id,
1502-
"bookable": "3001",
1503-
"startComment": "hello dear",
1504-
"participantCount": 18
1505-
}).subscribe(result => {
1506-
console.log("updateBooking():", result)
1507-
});
1508-
*/
1509-
1510-
if ('owner' in input) {
1511-
console.error(
1512-
'Requests.updateBooking(): Not allowed to update the owner ' +
1513-
"(bookingonly doesn't have the rights to).",
1514-
);
1515-
}
1516-
1517-
const extended_input = Object.assign({id: id}, input);
1518-
console.log(extended_input);
1519-
Server.bookingService.updateNow(extended_input).subscribe(result => {
1520-
console.log('updateBooking():', result);
1521-
});
1522-
},
1523-
15241496
// getServerInputsForBookingCreating
15251497
getServerInputsForBookingCreating: function (booking = Cahier.bookings[0], startDate = null) {
15261498
const bookingInputs = [];

0 commit comments

Comments
 (0)