Skip to content

Commit

Permalink
chore: Make plugin-server ignore deleted plugin configs (#18444)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiina303 authored Jan 3, 2024
1 parent e28d34c commit 50c21c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugin-server/src/utils/db/sql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ function pluginConfigsInForceQuery(specificField?: keyof PluginConfig): string {
LEFT JOIN posthog_organization ON posthog_organization.id = posthog_team.organization_id
LEFT JOIN posthog_plugin ON posthog_plugin.id = posthog_pluginconfig.plugin_id
WHERE (
posthog_pluginconfig.enabled='t' AND posthog_organization.plugins_access_level > 0
posthog_pluginconfig.enabled='t'
AND (posthog_pluginconfig.deleted is NULL OR posthog_pluginconfig.deleted!='t')
AND posthog_organization.plugins_access_level > 0
)`
}

Expand Down

0 comments on commit 50c21c9

Please sign in to comment.