Open MatoPlus opened 2 years ago
This should be a weekly job that checks for any invite that has been more than 2 weeks old, if so remove them.
Similarly, if any invites older than 1 week, remind them to accept the invite.
Technical Notes:
firebase init functions
https://www.freecodecamp.org/news/how-to-schedule-a-task-with-firebase-cloud-functions/
Actually, I think a cleaner solution for deleting expired rows would be using lazy cleanup, whenever we access expired rows, delete them and return error. However, we will still face an issue with reminder emails
This should be a weekly job that checks for any invite that has been more than 2 weeks old, if so remove them.
Similarly, if any invites older than 1 week, remind them to accept the invite.
Technical Notes:
firebase init functions
https://www.freecodecamp.org/news/how-to-schedule-a-task-with-firebase-cloud-functions/