mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-17 07:42:23 +00:00
refactor(openapi): derive the http code family from the status table
The catalogue listed the status defaults a second time by hand. It now reads them from DEFAULT_ERROR_CODES, the table the handler applies.
This commit is contained in:
1 parent
c145843aa3
commit
0057b03699
2 files changed
+7
-21
No files matched your search
@@ -322,8 +322,8 @@ describe("GET /api/insights/targets — mood-rollup tier swap", () => {
|
||||
});
|
||||
|
||||
it("reads latest-ever-per-type one index probe per type, floored at one year", async () => {
|
||||
// Audit High finding 3 established the 365-day floor. The read is the
|
||||
// shared `readLatestEver`: driven from the type list, one LIMIT 1 probe
|
||||
// The read is floored at 365 days. It is the shared `readLatestEver`:
|
||||
// driven from the type list, one LIMIT 1 probe
|
||||
// per type, so a dense type never sorts a year of raw rows to keep one.
|
||||
await callGet(makeReq());
|
||||
|
||||
|
||||
Reference in new issue
Block a user