small rename

This commit is contained in:
Andre Staltz 2023-09-14 13:55:08 +03:00
parent 530797317d
commit a5c4847244
No known key found for this signature in database
GPG Key ID: 9EDE23EA7E8A4890
1 changed files with 3 additions and 3 deletions

View File

@ -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,