games.gamesgamesgamesgames.refreshPublisherCounts

Queue a job that recounts how many games each organization is credited as publishing. Search uses the counts to tell established publishers from fan teams. Admins only. One refresh runs at a time.

Details · procedure
Kindprocedure
Authoritygamesgamesgamesgames.games
Commit rev3n2ep52bgnw25
Indexed
cid bafyreigwmvaph4xnbtjoe7zd6lem3jyz4tbhh5gspzfvi7yzh3hwspmyom

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Queue a job that recounts how many games each organization is credited as publishing. Search uses the counts to tell established publishers from fan teams. Admins only. One refresh runs at a time.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "dryRun": {
              "default": false,
              "description": "Count only, and report what would change.",
              "type": "boolean"
            }
          },
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "alreadyQueued": {
              "description": "True when a refresh was already pending or running; jobId is that job, and nothing new was queued.",
              "type": "boolean"
            },
            "jobId": {
              "maxLength": 128,
              "type": "string"
            },
            "status": {
              "description": "The existing job's status, when alreadyQueued is true.",
              "knownValues": [
                "pending",
                "running"
              ],
              "maxLength": 32,
              "type": "string"
            }
          },
          "required": [
            "jobId"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "games.gamesgamesgamesgames.refreshPublisherCounts",
  "lexicon": 1
}