most redacted. searching for more
All checks were successful
Rebuild signaller for deprived.dev to rebuild site / test_service (push) Successful in 16s
All checks were successful
Rebuild signaller for deprived.dev to rebuild site / test_service (push) Successful in 16s
This commit is contained in:
parent
4205712d32
commit
2f5aa50c84
11 changed files with 240 additions and 228 deletions
|
|
@ -32,7 +32,7 @@ class Redactor implements Readable<Profile | undefined> {
|
|||
|
||||
const unredactHash = hashResJson.response;
|
||||
initEnv();
|
||||
const url = `${env.POCKETBASE_URL}/api/files/redacted_content/${unredactHash}/redacted_cv_info_amhz90nhr7.json`;
|
||||
const url = `${env.POCKETBASE_URL}/api/collections/redacted_content/records/${unredactHash}`;
|
||||
|
||||
const res = await fetch(url, {
|
||||
method: "GET",
|
||||
|
|
@ -41,7 +41,7 @@ class Redactor implements Readable<Profile | undefined> {
|
|||
if (!res.ok) throw new Error(`HTTP ${res.status}`);
|
||||
|
||||
const data = await res.json();
|
||||
this.unredactedProfile = parseProfile(data);
|
||||
this.unredactedProfile = parseProfile(data.json);
|
||||
this.notify(); // <-- tell Svelte to update
|
||||
return this.unredactedProfile;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue