formated and linted

This commit is contained in:
Elmar Kresse
2023-10-17 21:16:58 +02:00
parent 4148b0c185
commit 10d0ae0d8a
23 changed files with 581 additions and 378 deletions

View File

@@ -19,14 +19,16 @@ export async function createIndividualFeed(modules: Module[]): Promise<string> {
return token;
}
export async function saveIndividualFeed(token: string, modules: Module[]): Promise<string> {
export async function saveIndividualFeed(
token: string,
modules: Module[],
): Promise<string> {
await fetch("/api/collections/feeds/records/" + token, {
method: "PATCH",
headers: {
"Content-Type": "application/json",
},
body: "{\"modules\":" + JSON.stringify(modules) + "}",
body: '{"modules":' + JSON.stringify(modules) + "}",
})
.then((response) => {
return response.json();