fix broken status loader

pull/209/head
Dario Piotrowicz 2023-02-07 09:56:26 +00:00
rodzic aa0911f7dc
commit 25a6f12bb8
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -20,7 +20,7 @@ export const statusLoader = loader$<
const domain = new URL(request.url).hostname
let statusText = ''
try {
const statusResponse = await statusAPI.handleRequest(platform.DATABASE, params.statusId, domain)
const statusResponse = await statusAPI.handleRequestGet(platform.DATABASE, params.statusId, domain)
statusText = await statusResponse.text()
} catch {
throw html(500, getErrorHtml('An error occurred whilst retrieving the status data, please try again later'))