Browse Source

ref: fix coalesce in organization_alert_rule_index (#52466)

django 3.x errors on type mismatch here




<!-- Describe your PR here. -->
anthony sottile 1 year ago
parent
commit
7685888820
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/sentry/incidents/endpoints/organization_alert_rule_index.py

+ 1 - 1
src/sentry/incidents/endpoints/organization_alert_rule_index.py

@@ -96,7 +96,7 @@ class OrganizationCombinedRuleIndexEndpoint(OrganizationEndpoint):
                         .order_by("-date_started")
                         .values("id")[:1]
                     ),
-                    Value("-1"),
+                    Value(-1),
                 )
             )