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

[#146 feat] : save post ID in user's posts array upon post creation #147

Merged
merged 1 commit into from
May 26, 2024

Conversation

Alpha17-2
Copy link
Collaborator

  • Updated the user model to include a 'posts' array for storing post IDs.
  • Implemented functionality to add the post ID to the 'posts' array in the user document when a new post is created.
  • Utilized Firestore transactions to ensure atomicity and consistency.

This ensures that each user maintains a list of their post IDs for easy reference and retrieval.

This PR closes #146

@Alpha17-2 Alpha17-2 merged commit facd216 into prod May 26, 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.

Save Post ID in User Model's Attribute posts Whenever a User Posts Something
1 participant