MCPcopy Create free account
hub / github.com/lightdash/lightdash / stepOrgSettings

Function stepOrgSettings

scripts/dev-github-reconcile.cjs:171–180  ·  view source on GitHub ↗
(client, kvs)

Source from the content-addressed store, hash-verified

169}
170
171async function stepOrgSettings(client, kvs) {
172 const org = await orgUuid(client);
173 const reviews = kvs.ai_agent_reviews_enabled === 'true';
174 await client.query(
175 `INSERT INTO ai_organization_settings (organization_uuid, ai_agents_visible, ai_agent_reviews_enabled)
176 VALUES ($1, true, $2)
177 ON CONFLICT (organization_uuid) DO UPDATE SET ai_agent_reviews_enabled=$2`,
178 [org, reviews]);
179 console.log(`OK: ai_organization_settings ai_agent_reviews_enabled=${reviews} for ${org}`);
180}
181
182async function stepDbtRepoCheck(client) {
183 const secret = need('RUNNING_SECRET');

Callers 1

Calls 2

orgUuidFunction · 0.85
logMethod · 0.45

Tested by

no test coverage detected