env thing ts
All checks were successful
Rebuild signaller for deprived.dev to rebuild site / test_service (push) Successful in 20s
All checks were successful
Rebuild signaller for deprived.dev to rebuild site / test_service (push) Successful in 20s
This commit is contained in:
parent
fd1ef8612f
commit
07f0d798a2
2 changed files with 46 additions and 32 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue