From 03d72e59c36af4adab0d8ddc201cb2bf303f2576 Mon Sep 17 00:00:00 2001 From: Patrick Alvin Alcala Date: Sat, 7 Mar 2026 17:43:41 +0800 Subject: [PATCH] Forgotten --- src/utils/functions/voidPopsApi.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/utils/functions/voidPopsApi.ts b/src/utils/functions/voidPopsApi.ts index 904bf1b..8daf4e9 100644 --- a/src/utils/functions/voidPopsApi.ts +++ b/src/utils/functions/voidPopsApi.ts @@ -1,10 +1,13 @@ import { ofetch } from 'ofetch' -const VOID = "https://gateway.davaocity.gov.ph/api/pops/voidOP.ashx?oprefid=" +// const VOID = "https://gateway.davaocity.gov.ph/api/pops/voidOP.ashx?oprefid=" +const API = import.meta.env.VITE_BACKEND export default async (application: string) => { try { - const fetch = await ofetch(VOID + application, { parseResponse: JSON.parse, retry: 3, retryDelay: 500, retryStatusCodes: [400, 404, 405, 500, 502] }) + // const fetch = await ofetch(VOID + application, { parseResponse: JSON.parse, retry: 3, retryDelay: 500, retryStatusCodes: [400, 404, 405, 500, 502] }) + + const fetch = await ofetch(API + `pops/voidOP/${application}/void-pops`, { parseResponse: JSON.parse, retry: 3, retryDelay: 500, retryStatusCodes: [400, 404, 405, 500, 502] }) const result = fetch return result } catch {