env thing ts
All checks were successful
Rebuild signaller for deprived.dev to rebuild site / test_service (push) Successful in 20s

This commit is contained in:
BOTAlex 2025-10-09 00:43:57 +02:00
parent fd1ef8612f
commit 07f0d798a2
2 changed files with 46 additions and 32 deletions

View file

@ -1,5 +1,6 @@
import { parseProfile, type Profile } from "./Profile";
import env from "@ts/EnvHandler";
import { initEnv } from "@ts/EnvHandler";
class Redactor {
public unredactedProfile: Profile | undefined = undefined;
@ -24,7 +25,8 @@ class Redactor {
const unredactHash = hashResJson.response;
console.log('Trying unredact hash: "' + unredactHash + '"');
const url = `https://${env.POCKETBASE_URL}/api/files/redacted_content/${unredactHash}/redacted_cv_info_ha08bbn520.json`;
initEnv();
const url = `${env.POCKETBASE_URL}/api/files/redacted_content/${unredactHash}/redacted_cv_info_ha08bbn520.json`;
const res = await fetch(url, {
method: "GET",