(hub: Hub, pluginConfigId: PluginConfigId)
| 131 | } |
| 132 | |
| 133 | export 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 | } |
no test coverage detected
searching dependent graphs…