diff --git a/lib/index.js b/lib/index.js index 8fb6682..7d17b82 100644 --- a/lib/index.js +++ b/lib/index.js @@ -422,7 +422,7 @@ function initDB(peer, config) { const keypair = opts.keypair ?? config.keypair const { account, domain } = opts - const mootID = getFeedID(account, domain) + const mootID = findMoot(account, domain) if (mootID) return cb(null, mootID) const moot = MsgV3.createMoot(account, domain, keypair) @@ -857,7 +857,7 @@ function initDB(peer, config) { * @param {string} id * @param {string} findDomain */ - function getFeedID(id, findDomain) { + function findMoot(id, findDomain) { const findAccount = MsgV3.stripAccount(id) for (const rec of records()) { if (rec.msg && MsgV3.isMoot(rec.msg, findAccount, findDomain)) { @@ -964,7 +964,7 @@ function initDB(peer, config) { }, feed: { publish: publishToFeed, - getID: getFeedID, + getID: findMoot, }, getRecord, get,