fix: close record repair and verification gaps

This commit is contained in:
bryanpedini committed 2026-11-19 15:46:12 +01:00
1 parent 9251c85fd8
commit adff599e08
27 files changed
+787 -153

No files matched your search

+4 -1
View File
@@ -108,7 +108,10 @@ export function matchRoute(method: string, apiPath: string): RouteMatch | null {
const v = groups[i];
if (v === null || v === undefined) return;
if (t === 'zone') out.zone = normalizeZoneParam(v);
if (t === 'record') out.recordId = /^[0-9]{1,9}$/.test(v) ? Number(v) : null;
if (t === 'record' && /^\+?[0-9]+$/.test(v)) {
const id = Number(v);
if (id > 0 && id <= 0xffffffff) out.recordId = id;
}
if (t === 'user' || t === 'delegation') out.targetUser = v;
});
return out;