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

Expired Links and Invitation Functionality #3

Merged
merged 8 commits into from
Apr 2, 2024
Merged

Conversation

yatharth-b
Copy link
Contributor

Resolves #174

Added a pub/sub function to check for expired links every week which deletes invites from the invites collection if they are expired and also deletes the invites from the sender's schedule collection.

Checkllist

  • A new field is added to the friend-invites collection/schema to track time.
  • If an expired invite link is clicked, it should return some response and delete the friend from the invited list in the schedules collection.
  • A new cloud function is added to clean up expired invitations every 7 days.

How to test

Start the cloud function emulator and send a request from the front end using the invitation modal.
I was not able to test the pub/sub function but it should work as expected because it is very similar to the code in the handle invitation function.

@yatharth-b yatharth-b requested a review from nhatnghiho March 1, 2023 22:26
@samarth52 samarth52 mentioned this pull request Oct 20, 2023
@yatharth-b yatharth-b merged commit 8ad1871 into main Apr 2, 2024
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.

Set an Expiration for Invite Links
2 participants