mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
fix all the formatting
This commit is contained in:
@@ -18,5 +18,5 @@ export function getNextBigger<T>(array: T[], pivot: T): T {
|
||||
}
|
||||
|
||||
export function uniqueFilter(value, index, self) {
|
||||
return self.indexOf(value) === index;
|
||||
return self.indexOf(value) === index
|
||||
}
|
||||
|
||||
@@ -31,7 +31,10 @@ export async function cancelBooking(uuid: string) {
|
||||
})
|
||||
}
|
||||
|
||||
export async function patchBooking(uuid: string, bookingData: Partial<BookFormData>) {
|
||||
export async function patchBooking(
|
||||
uuid: string,
|
||||
bookingData: Partial<BookFormData>
|
||||
) {
|
||||
return fetch(`/api/bookings/${uuid}`, {
|
||||
method: 'PATCH',
|
||||
body: bookingData,
|
||||
|
||||
@@ -34,7 +34,7 @@ export function getDays({
|
||||
return days
|
||||
}
|
||||
|
||||
const inclusiveEndDate = endDateExclusive ? subDays(endDate, 1) : endDate;
|
||||
const inclusiveEndDate = endDateExclusive ? subDays(endDate, 1) : endDate
|
||||
|
||||
while (currentDay < inclusiveEndDate) {
|
||||
currentDay = addDays(currentDay, 1)
|
||||
|
||||
Reference in New Issue
Block a user