feat: extended ratings stats

This commit is contained in:
TrèsAbhi committed 2024-03-19 18:21:56 -05:00
1 parent 8faa1143e9
commit 38af2f2817
10 files changed
+160 -68

No files matched your search

+3 -1
View File
@@ -1,3 +1,5 @@
import { patientFetch } from '../blitzkrieg/patientFetch';
type BlitzResponse<Data extends object> =
| {
status: 'error';
@@ -23,7 +25,7 @@ async function manageQueue() {
}, 1000);
const { url, resolve } = queue.shift()!;
const data = (await fetch(url)
const data = (await patientFetch(url)
.then((response) => response.json())
.catch((error) => ({ status: 'error', error }))) as BlitzResponse<
typeof resolve