From 054583bcbb8b48d04f4d1303f5383a088a207c02 Mon Sep 17 00:00:00 2001 From: Nikita Melkozerov Date: Tue, 22 Oct 2024 15:03:37 +0000 Subject: [PATCH] Use updated subscription credentials when pinging new subscriptions --- fixbackend/cloud_accounts/azure_subscription_repo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()]