mirror of https://codeberg.org/pzp/pzp-db.git
small rename
This commit is contained in:
parent
530797317d
commit
a5c4847244
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue