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

Automatically subscribe user to study group when user attends to session (study_group_presence log) #146

Open
danicuki opened this issue Jun 5, 2024 · 0 comments

Comments

@danicuki
Copy link
Contributor

danicuki commented Jun 5, 2024

When the user attends to a study group, it is created in the database a log of the user presence.

The log has the user discord_id.

We must create a function that monitors study_group_presence creation. When the log is created, it looks in the users collection for someone with the same discord_id as the one logged. If the user is found, adds the study_group_id to the study_group_ids list in the user's object in firestore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant