feat:#5 linted format

This commit is contained in:
Elmar Kresse
2024-01-31 15:47:32 +01:00
parent b08f839558
commit 9dc8df0cd2
6 changed files with 1631 additions and 387 deletions

View File

@@ -1,9 +1,10 @@
// load free rooms as a list of strings form the backend
export async function requestFreeRooms(from: string, to: string): Promise<string[]> {
console.debug("requestFreeRooms: from=" + from + ", to=" + to)
export async function requestFreeRooms(
from: string,
to: string,
): Promise<string[]> {
console.debug("requestFreeRooms: from=" + from + ", to=" + to);
const rooms: string[] = [];
await fetch("/api/rooms/free?from=" + from + "&to=" + to)
.then((response) => {
@@ -13,4 +14,4 @@ export async function requestFreeRooms(from: string, to: string): Promise<string
roomsResponse?.forEach((room: string) => rooms.push(room));
});
return rooms;
}
}