GeoLeaf Core API - v3.19.0
    Preparing search index...
    • Does this queue entry belong to the active profile? — the single routing predicate.

      🛑 The drain, the tallies and the quarantine exit all ask this one function. A write target is resolved from the ACTIVE profile, so an entry of another profile must neither leave (it would reach the endpoint of a layer that merely shares its id) nor be judged (its layer is not declared here, which is not a fault of the entry).

      ⚠️ An entry with no profileId predates the field and belongs to every profile: that is the former behaviour, kept on purpose (see OutboxEntry.profileId). An entry stamped while no profile is loaded belongs to none — it waits, rather than being sent nowhere.

      Parameters

      • entry: { profileId?: string }

        The queue entry, or any record carrying its profileId.

      Returns boolean

      true when the entry may be replayed, counted and judged under this profile.

      const owed = (await outbox.list()).filter(belongsToActiveProfile);
      console.info(`${owed.length} écriture(s) de ce profil en file`);