Skip to content

Commit

Permalink
Use updated timestamp when pinging new subscriptions (#637)
Browse files Browse the repository at this point in the history
  • Loading branch information
meln1k authored Oct 22, 2024
1 parent 846a1ca commit eb1810f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fixbackend/cloud_accounts/azure_subscription_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()]
Expand Down

0 comments on commit eb1810f

Please sign in to comment.