fix:#79 lint and format

This commit is contained in:
masterElmar
2023-11-20 21:13:27 +01:00
parent cf07db861f
commit 3814a4712d
8 changed files with 215 additions and 109 deletions

View File

@ -6,12 +6,13 @@ export async function getCalender(token: string): Promise<Module[]> {
method: "GET",
});
return await fetch(request)
.then((response) => {
if( response.ok){
return response.json().then((calendarResponse: Calendar) => calendarResponse.modules)
} else {
return [];
}
})
return await fetch(request).then((response) => {
if (response.ok) {
return response
.json()
.then((calendarResponse: Calendar) => calendarResponse.modules);
} else {
return [];
}
});
}