fix(jobs): the encryption backfill still runs for an account pending deletion

The per-account free-text encryption backfill seals what is already stored
and changes nothing the record holds, which is why its module is exempt from
the frozen-account rule; the new pending-deletion gate dropped its per-user
jobs anyway. A queue can now say it acts for pending accounts
(actsForPendingAccounts), and this one does.

Also types the ingest route test's token fixture to the row it now reads,
and drops an unused variable from the deletion grace test.
This commit is contained in:
Marc-André Bombeck committed 2026-10-25 17:51:13 +01:00
1 parent e6c709876d
commit 42940c3a98
6 files changed
+29 -2

No files matched your search

@@ -376,7 +376,7 @@ describe("POST /api/ingest/medication — slot attribution + convergence (v1.16.
expiresAt: null,
lastUsedAt: null,
user: { deletionRequestedAt: null },
} as Awaited<ReturnType<typeof prisma.apiToken.findUnique>>);
} as never);
}
it("gives a one-medication token the same 403 for an unknown and an out-of-scope name", async () => {