diff --git a/frontend/src/types.ts b/frontend/src/types.ts index 3be1a7de83c48..7cf59bf6c2524 100644 --- a/frontend/src/types.ts +++ b/frontend/src/types.ts @@ -3135,12 +3135,12 @@ export interface DataWarehouseViewLink { from_join_key?: string } -export interface ExternalDataStripeResourceCreatePayload { +export interface ExternalDataStripeSourceCreatePayload { account_id: string client_secret: string } -export interface ExternalDataStripeResource { +export interface ExternalDataStripeSource { id: string source_id: string connection_id: string diff --git a/posthog/warehouse/api/external_data_source.py b/posthog/warehouse/api/external_data_source.py index 72fae355c96d5..90da9a221f2a8 100644 --- a/posthog/warehouse/api/external_data_source.py +++ b/posthog/warehouse/api/external_data_source.py @@ -61,7 +61,7 @@ def create(self, request: Request, *args: Any, **kwargs: Any) -> Response: ExternalDataSource.objects.create( source_id=new_source.source_id, connection_id=new_connection.connection_id, - team=self.request.user.current_team, + team=self.team, status="running", source_type="Stripe", )