update ppppp-db

This commit is contained in:
Andre Staltz 2024-01-30 17:45:06 +02:00
parent 4b10d13862
commit 17627d6142
No known key found for this signature in database
GPG Key ID: 9EDE23EA7E8A4890
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ const Obz = require('obz')
* @typedef {import('ppppp-db').RecPresent} RecPresent * @typedef {import('ppppp-db').RecPresent} RecPresent
* @typedef {import('ppppp-db').Tangle} Tangle * @typedef {import('ppppp-db').Tangle} Tangle
* @typedef {import('ppppp-db').Msg} Msg * @typedef {import('ppppp-db').Msg} Msg
* @typedef {ReturnType<PPPPPDB['getTangle']>} DBTangle * @typedef {NonNullable<ReturnType<PPPPPDB['getTangle']>>} DBTangle
* @typedef {string} MsgID * @typedef {string} MsgID
* @typedef {'none'|'all'|`newest-${number}`|'dict'|'set'} GoalDSL * @typedef {'none'|'all'|`newest-${number}`|'dict'|'set'} GoalDSL
* @typedef {'none'|'all'|'newest'|'dict'|'set'} GoalType * @typedef {'none'|'all'|'newest'|'dict'|'set'} GoalType
@ -265,7 +265,7 @@ function initGoals(peer, config) {
} }
// Check whether this msg is a ghost affix of some tangle: // Check whether this msg is a ghost affix of some tangle:
for (const [tangle, , , , goalType] of validTangles) { for (const [tangle, min, max, recDepth, goalType] of validTangles) {
if (goalType === 'dict') { if (goalType === 'dict') {
const span = peer.dict.getGhostSpan() const span = peer.dict.getGhostSpan()
if (peer.dict.isGhostable(msgID, tangle.id)) { if (peer.dict.isGhostable(msgID, tangle.id)) {