aboutsummaryrefslogtreecommitdiffstats
path: root/names
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-11-16 10:48:03 -0700
committerAdam Soltys <[email protected]>2026-11-16 10:48:03 -0700
commit6efa593d210370339c23c7cc01caa69a8dc233a5 (patch)
tree9c3f5c18da02fb404f0fb17a1fd46ca844dab582 /names
parentb5eab3dca2c5a2a6c8389c61c9fac8f3b477cb4b (diff)
downloadcoinosv3-server-6efa593d210370339c23c7cc01caa69a8dc233a5.tar.gz
coinosv3-server-6efa593d210370339c23c7cc01caa69a8dc233a5.zip
dns-migrate: backfill names without a Cloudflare record id
paff.club names claimed while it had dns:false (16 of 68) never got a record id, so backfill skipped them; on a knot domain every name with a URI belongs in the zone. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VMan6SwkivduFDDkMmnXjZ
Diffstat (limited to 'names')
-rw-r--r--names/dns-migrate.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/names/dns-migrate.js b/names/dns-migrate.js
index c4ae68b..e3ec521 100644
--- a/names/dns-migrate.js
+++ b/names/dns-migrate.js
@@ -26,7 +26,9 @@ function names() {
db.close();
return rows.map((r) => ({ key: r.key, ...JSON.parse(r.val) }))
.map((r) => ({ ...r, name: r.key.split('@')[0], domain: r.domain || r.key.split('@')[1] }))
- .filter((r) => knotDomains.includes(r.domain) && r.uri && r.recordId);
+ // every name with a URI: names claimed while a domain had dns:false never
+ // got a record id, and still belong in its zone
+ .filter((r) => knotDomains.includes(r.domain) && r.uri);
}
async function backfill() {