Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(scripts): improve inactive account uids script #17951

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

chenba
Copy link
Contributor

@chenba chenba commented Oct 31, 2024

Because:

  • there were a few small issues with the inactive account uids script

This commit:

  • stops opening an output file in dry run mode
  • fixes an import so that the tsc'd js won't error
  • eliminates the accounts with Stripe subscriptions in the initial query

Because:
 - there were a few small issues with the inactive account uids script

This commit:
 - stops opening an output file in dry run mode
 - fixes an import so that the tsc'd js won't error
 - eliminates the accounts with Stripe subscriptions in the initial
   query
@chenba chenba requested a review from a team as a code owner October 31, 2024 20:53
@@ -161,19 +159,25 @@ const init = async () => {
])
.as('securityEventUids');

const accountCustomerUids = AccountCustomers.query()
.distinct('uid')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there non-distinct uids?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, I just got copy-paste happy. Thank you for catching that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants