Skip to content

Commit

Permalink
perf: Change secret filter account secret_reset
Browse files Browse the repository at this point in the history
  • Loading branch information
feng626 committed Jan 6, 2025
1 parent ff9adb4 commit 35e4351
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/accounts/automations/base/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def get_accounts(self, privilege_account) -> BaseAccountQuerySet | None:

asset = privilege_account.asset
accounts = asset.accounts.all()
accounts = accounts.filter(id__in=self.account_ids)
accounts = accounts.filter(id__in=self.account_ids, secret_reset=True)

if self.secret_type:
accounts = accounts.filter(secret_type=self.secret_type)
Expand Down

0 comments on commit 35e4351

Please sign in to comment.