MCPcopy Index your code
hub / github.com/PostHog/posthog / disablePlugin

Function disablePlugin

plugin-server/src/utils/db/sql.ts:133–140  ·  view source on GitHub ↗
(hub: Hub, pluginConfigId: PluginConfigId)

Source from the content-addressed store, hash-verified

131}
132
133export async function disablePlugin(hub: Hub, pluginConfigId: PluginConfigId): Promise<void> {
134 await hub.db.postgresQuery(
135 `UPDATE posthog_pluginconfig SET enabled='f' WHERE id=$1 AND enabled='t'`,
136 [pluginConfigId],
137 'disablePlugin'
138 )
139 await hub.db.redisPublish(hub.PLUGINS_RELOAD_PUBSUB_CHANNEL, 'reload!')
140}

Callers 2

sql.test.tsFile · 0.90

Calls 2

postgresQueryMethod · 0.80
redisPublishMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…