drupflare/worker - v1.0.4
    Preparing search index...

    Function settlePrimary

    • Chooses and records the primary among several claimed sites, unless one was recorded meanwhile.

      Parameters

      • kv: DeploymentKv
      • candidates: readonly string[]
      • count: (site: string) => Promise<SiteCensus>

        asks one site's object what it holds

      Returns Promise<string | undefined>

      the primary now in force