From eb1810f7645f80da2e22cc7ef56d9837e32a7370 Mon Sep 17 00:00:00 2001 From: Nikita Melkozerov Date: Tue, 22 Oct 2024 18:04:14 +0200 Subject: [PATCH] Use updated timestamp when pinging new subscriptions (#637) --- 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()]