[F] Fix return

This commit is contained in:
2024-12-17 00:59:28 -05:00
parent df23f9f878
commit cd97f60b0e
+1 -1
View File
@@ -73,7 +73,7 @@ export const Fmt = {
export const Backend = {
get: (id: string) => fetch(`${cfg.backend}/${id}`).then(r => {
if (!r.ok) throw new Error(`Failed to get puzzle: ${r.status}`)
r.text()
return r.text()
}).then(JsonTy.parse),
post: (data: Checkpoint) => fetch(`${cfg.backend}/`, { method: "post", body: JsonTy.stringify(data) }),
}