From 25a6f12bb820172f48eac25db10553f29f6d735d Mon Sep 17 00:00:00 2001 From: Dario Piotrowicz Date: Tue, 7 Feb 2023 09:56:26 +0000 Subject: [PATCH] fix broken status loader --- frontend/src/routes/(frontend)/[accountId]/[statusId]/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/routes/(frontend)/[accountId]/[statusId]/index.tsx b/frontend/src/routes/(frontend)/[accountId]/[statusId]/index.tsx index 6700e18..5466984 100644 --- a/frontend/src/routes/(frontend)/[accountId]/[statusId]/index.tsx +++ b/frontend/src/routes/(frontend)/[accountId]/[statusId]/index.tsx @@ -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'))