Skip to content

[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

Open
wants to merge 22 commits into
base: main
Choose a base branch
from
Open

[server] Retention emails #5550

wants to merge 22 commits into from

Conversation

mngshm
Copy link
Member

@mngshm mngshm commented Apr 7, 2025

No description provided.

@mngshm mngshm marked this pull request as ready for review April 18, 2025 11:49
@mngshm mngshm requested a review from ua741 April 20, 2025 20:58
Comment on lines +271 to +275
thirtyDays := 30 * 24 * t.Hour
creationTime := t.Unix(0, user.CreationTime)
timeSinceCreation := t.Since(creationTime)

if timeSinceCreation >= thirtyDays {
Copy link
Member

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.

Copy link
Member Author

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

@mngshm mngshm force-pushed the retention-emails branch 2 times, most recently from 665160f to e7b5815 Compare April 21, 2025 10:16
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