Skip to content

Commit

Permalink
Updates documentation for reschedule method to show the newly require…
Browse files Browse the repository at this point in the history
…d code parameter
  • Loading branch information
craigpaul committed Nov 10, 2020
1 parent a4935ab commit b0688b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ Set an attribute which will tell the API to use the given string as the medium U

Set a filter to determine who should be notified when booking an appointment.

- `reschedule(appointment: number)`
- `reschedule(appointment: number, code: string)`

Reschedule an appointment matching the given appointment identifier using the pre-set start parameter.

Expand Down Expand Up @@ -244,12 +244,12 @@ class Appointments {
return this.api.appointments().matching({ code, id }).get();
}

async reschedule({ appointment, start }) {
async reschedule({ appointment, code, start }) {
return this.api
.appointments()
.starting(start)
.notify(Notifications.ALL)
.reschedule(appointment);
.reschedule(appointment, code);
}
}
```
Expand Down

0 comments on commit b0688b4

Please sign in to comment.