From a5c48472448e8cdc647733521cea110335550b36 Mon Sep 17 00:00:00 2001 From: Andre Staltz Date: Thu, 14 Sep 2023 13:55:08 +0300 Subject: [PATCH] small rename --- lib/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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,