update
This commit is contained in:
@@ -57,7 +57,8 @@ export const bookingApi = {
|
||||
checkAvailability(
|
||||
fahrzeugId: string,
|
||||
from: Date,
|
||||
to: Date
|
||||
to: Date,
|
||||
excludeId?: string
|
||||
): Promise<{ available: boolean; reason?: string; ausserDienstVon?: string; ausserDienstBis?: string }> {
|
||||
return api
|
||||
.get<ApiResponse<{ available: boolean; reason?: string; ausserDienstVon?: string; ausserDienstBis?: string }>>('/api/bookings/availability', {
|
||||
@@ -65,6 +66,7 @@ export const bookingApi = {
|
||||
fahrzeugId,
|
||||
from: from.toISOString(),
|
||||
to: to.toISOString(),
|
||||
...(excludeId ? { excludeId } : {}),
|
||||
},
|
||||
})
|
||||
.then((r) => r.data.data);
|
||||
|
||||
Reference in New Issue
Block a user