feat(teams): answer core's Team provider from the guild board #9

Merged
whitlocktech merged 1 commits from feat/teams-phase2-provider into edge 2026-08-17 22:48:21 +00:00
Showing only changes of commit c6929c6bae - Show all commits

View File

@@ -5,9 +5,10 @@
// core-internal (docs/website/TEAMS.md §10.3) and this module must never name // core-internal (docs/website/TEAMS.md §10.3) and this module must never name
// one, even though it is what fills them. // one, even though it is what fills them.
const core = require('../../core') // `query` is destructured from the core facade at require time, like every other
// *.db.js here. The facade resolves `ctx` per call, so taking it now is safe even
const query = (...args) => core.db.query(...args) // though `ctx` does not exist yet when this file is first required.
const { query } = require('../../core')
/** /**
* The guild board — one row per guild the shard has told us about. * The guild board — one row per guild the shard has told us about.