fix GetAllRecords (remove trailing slash)
This commit is contained in:
+1
-1
@@ -14,7 +14,7 @@ function DomainToCoreDNS(domain) {
|
||||
async function GetAllRecords(domain) {
|
||||
console.log(`GetAllRecords for ${domain}`);
|
||||
|
||||
const prefix = DomainToCoreDNS(domain) + "/";
|
||||
const prefix = DomainToCoreDNS(domain);
|
||||
if (!prefix) throw new Error("Invalid domain");
|
||||
console.log(`Prefix is ${prefix}`);
|
||||
const kvs = await client.getAll().prefix(prefix).strings();
|
||||
|
||||
Reference in New Issue
Block a user