mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-07-24 13:38:48 +02:00
formated and linted
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import { Module } from "../model/module";
|
||||
import { Calendar } from "../model/calendar";
|
||||
|
||||
export async function getCalender( token: string): Promise<Module[]> {
|
||||
export async function getCalender(token: string): Promise<Module[]> {
|
||||
const request = new Request("/api/collections/feeds/records/" + token, {
|
||||
method: "GET",
|
||||
});
|
||||
@ -10,7 +10,5 @@ export async function getCalender( token: string): Promise<Module[]> {
|
||||
.then((response) => {
|
||||
return response.json();
|
||||
})
|
||||
.then(
|
||||
(calendarResponse: Calendar) => calendarResponse.modules
|
||||
);
|
||||
}
|
||||
.then((calendarResponse: Calendar) => calendarResponse.modules);
|
||||
}
|
||||
|
Reference in New Issue
Block a user