Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

fix: retain public Word consent in account backups

Amruth Pillaia4631c8ff223
diff --git a/packages/api/src/features/auth/service.ts b/packages/api/src/features/auth/service.ts
index c86cabc32..bda9d82ba 100644
--- a/packages/api/src/features/auth/service.ts
+++ b/packages/api/src/features/auth/service.ts
@@ -90,6 +90,7 @@ export const authService = {
data: schema.resume.data,
isPublic: schema.resume.isPublic,
showDownloadButtons: schema.resume.showDownloadButtons,
+ allowWordDownload: schema.resume.allowWordDownload,
showInSearchEngines: schema.resume.showInSearchEngines,
hideContactDetails: schema.resume.hideContactDetails,
isPrimary: schema.resume.isPrimary,
diff --git a/tests/e2e/specs/public-word-download.spec.ts b/tests/e2e/specs/public-word-download.spec.ts
index 8740e199b..1a98e6555 100644
--- a/tests/e2e/specs/public-word-download.spec.ts
+++ b/tests/e2e/specs/public-word-download.spec.ts
@@ -64,6 +64,10 @@ test("public Word downloads require owner opt-in, public visibility and current
await owner.reload();
await openSidebarSection(owner, "Sharing");
await expect(wordSwitch).toBeChecked();
+ const backup = await owner.request.get("/api/openapi/auth/account/export");
+ await expect(backup).toBeOK();
+ const exported = (await backup.json()) as { resumes: { id: string; allowWordDownload?: boolean }[] };
+ expect(exported.resumes.find((resume) => resume.id === id)).toMatchObject({ allowWordDownload: true });
await owner
.locator("section[aria-labelledby=share-privacy-title]")
.screenshot({ path: test.info().outputPath("word-privacy.png") });