diff --git a/fixbackend/cloud_accounts/azure_subscription_repo.py b/fixbackend/cloud_accounts/azure_subscription_repo.py index 576a0e32..066bb07b 100644 --- a/fixbackend/cloud_accounts/azure_subscription_repo.py +++ b/fixbackend/cloud_accounts/azure_subscription_repo.py @@ -121,7 +121,7 @@ async def get_by_tenant(self, tenant_id: WorkspaceId) -> Optional[AzureSubscript async def list_created_after(self, time: datetime) -> List[AzureSubscriptionCredentials]: async with self._session_maker() as session: query = select(AzureSubscriptionCredentialsEntity).filter( - AzureSubscriptionCredentialsEntity.created_at > time + AzureSubscriptionCredentialsEntity.updated_at > time ) result = await session.execute(query) return [entity.to_model() for entity in result.scalars()]