feat: format with prettier

This commit is contained in:
swve 2024-02-09 21:22:15 +01:00
parent 03fb09c3d6
commit a147ad6610
164 changed files with 11257 additions and 8154 deletions

View file

@ -1,10 +1,12 @@
import { getAPIUrl } from "@services/config/config";
import { RequestBody } from "@services/utils/ts/requests";
import { getAPIUrl } from '@services/config/config'
import { RequestBody } from '@services/utils/ts/requests'
export async function submitQuizBlock(activity_id: string, data: any) {
const result: any = await fetch(`${getAPIUrl()}blocks/quiz/${activity_id}"`, RequestBody("POST", data, null))
const result: any = await fetch(
`${getAPIUrl()}blocks/quiz/${activity_id}"`,
RequestBody('POST', data, null)
)
.then((result) => result.json())
.catch((error) => console.log("error", error));
return result;
}
.catch((error) => console.log('error', error))
return result
}