diff --git a/src/sentry/api/endpoints/source_map_debug_blue_thunder_edition.py b/src/sentry/api/endpoints/source_map_debug_blue_thunder_edition.py index 026962d39c01e2..231f3c33be39f3 100644 --- a/src/sentry/api/endpoints/source_map_debug_blue_thunder_edition.py +++ b/src/sentry/api/endpoints/source_map_debug_blue_thunder_edition.py @@ -212,14 +212,14 @@ def get(self, request: Request, project: Project, event_id: str) -> Response: has_uploaded_some_artifact_with_a_debug_id = bool( debug_ids_with_uploaded_source_file or debug_ids_with_uploaded_source_map ) or ( - DebugIdArtifactBundle.objects.filter( - organization_id=project.organization_id, + ProjectArtifactBundle.objects.filter( + project_id=project.id, ) .filter( Exists( - ProjectArtifactBundle.objects.filter( + DebugIdArtifactBundle.objects.filter( artifact_bundle_id=OuterRef("artifact_bundle_id"), - project_id=project.id, + organization_id=project.organization_id, ) ) )