File tree Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Original file line number Diff line number Diff line change @@ -1493,34 +1493,6 @@ export const Requests = {
1493
1493
}
1494
1494
} ,
1495
1495
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
-
1524
1496
// getServerInputsForBookingCreating
1525
1497
getServerInputsForBookingCreating : function ( booking = Cahier . bookings [ 0 ] , startDate = null ) {
1526
1498
const bookingInputs = [ ] ;
You can’t perform that action at this time.
0 commit comments