mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender-pwa.git
synced 2026-01-17 13:32:25 +01:00
feat:#5 linted format
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user