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

HealthyHabits Scheduled Zoom Call Email #89

Closed
RudraPatel2003 opened this issue Jan 8, 2025 · 0 comments · Fixed by #99
Closed

HealthyHabits Scheduled Zoom Call Email #89

RudraPatel2003 opened this issue Jan 8, 2025 · 0 comments · Fixed by #99
Assignees

Comments

@RudraPatel2003
Copy link
Member

  1. Create a new email so that people are reminded of their weekly zoom call

Preview: "Reminder: You have an upcoming Healthy Habits meeting"

Subject: Reminder: You have an upcoming Healthy Habits meeting

Text: "Please click the link below to join the zoom call for Healthy Habits for the Long Haul"

The button links to a zoom link but point it to google for now

  1. Create the sending function

  2. Create a new endpoint at /api/emails/actions/send-healthy-habits-zoom-link

Its a POST request that queries the db for all ProgramEnrollments where the status is accepted, the program is healthy habits. Populate the user and grab their emails.

Then send out the email from step 1 using the function from step 2.

Make sure this endpoint is protected and they provide the right x-api-key header. See the admin creation endpoint to see how to do that.

  1. (Maybe this works) Create a new github action that runs on a schedule. Make it run every Sunday at noon and it just hits the endpoint you made. Point it to https://rudra-utkscf-fork.vercel.app/ for now and we can change it later. Access the API key using ${{ secrets.API_KEY }} as it is stored as a "Repository Secret" (see the pr workflow to see more info on accessing secrets)
@RudraPatel2003 RudraPatel2003 changed the title HealthyHabits Scheduled Zoom Call HealthyHabits Scheduled Zoom Call Email Jan 8, 2025
@AlanKha AlanKha linked a pull request Jan 16, 2025 that will close this issue
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 a pull request may close this issue.

2 participants