sync but probably in a broken state
Some checks failed
Rebuild signaller for deprived.dev to rebuild site / test_service (push) Failing after 15s
Some checks failed
Rebuild signaller for deprived.dev to rebuild site / test_service (push) Failing after 15s
This commit is contained in:
parent
4c1c0c600d
commit
fd1ef8612f
3 changed files with 44 additions and 12 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import { parseProfile, type Profile } from "./Profile";
|
||||
import env from "@ts/EnvHandler";
|
||||
|
||||
class Redactor {
|
||||
public unredactedProfile: Profile | undefined = undefined;
|
||||
|
|
@ -23,7 +24,7 @@ class Redactor {
|
|||
const unredactHash = hashResJson.response;
|
||||
console.log('Trying unredact hash: "' + unredactHash + '"');
|
||||
|
||||
const url = `https://pocket.deprived.dev/api/files/redacted_content/${unredactHash}/redacted_cv_info_ha08bbn520.json`;
|
||||
const url = `https://${env.POCKETBASE_URL}/api/files/redacted_content/${unredactHash}/redacted_cv_info_ha08bbn520.json`;
|
||||
|
||||
const res = await fetch(url, {
|
||||
method: "GET",
|
||||
|
|
@ -35,7 +36,6 @@ class Redactor {
|
|||
return parseProfile(data);
|
||||
}
|
||||
|
||||
// TS/JS
|
||||
async t(unredactPath: string, fallback: string): Promise<string> {
|
||||
try {
|
||||
if (!this.unredactedProfile) await this.TryGetUnredacter();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue