-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[server] Retention emails #5550
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
base: main
Are you sure you want to change the base?
Conversation
…thout families after 30 days of sub
…eturn storage exceeded/exceeding users on the param basis
… of users depending on storage consumed
…fication_history table
…on_history on Subscription Update
thirtyDays := 30 * 24 * t.Hour | ||
creationTime := t.Unix(0, user.CreationTime) | ||
timeSinceCreation := t.Since(creationTime) | ||
|
||
if timeSinceCreation >= thirtyDays { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can this filter in GetSubscribedUsersWithoutFamily
, can pass a param createdBeforeInDays int64 and use that to get only users with account older than 30 days.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will give this a try @ua741
665160f
to
e7b5815
Compare
No description provided.