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

Cronjob to send email of all notifications #27

Open
GraemeFulton opened this issue Jun 30, 2024 · 0 comments
Open

Cronjob to send email of all notifications #27

GraemeFulton opened this issue Jun 30, 2024 · 0 comments

Comments

@GraemeFulton
Copy link
Member

GraemeFulton commented Jun 30, 2024

could work like this:

  • at the end of the day/week , a funciton that queries notifications table by unread
  • then group the notifications based on type:
    • (e.g. x people liked y), you got a creator badge ...
    • this person who you follow, just published this post
  • send as a weekly roundup
  • mark notification as email sent
  • following week, repeat but exclude notificaitons with emailSent==true so if the user doesn't open the notifaction, it doesn't send again
  • if no new notifications, don't send email
@GraemeFulton GraemeFulton converted this from a draft issue Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant