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

[Feature] Save actions for study review form #152

Merged

Conversation

saseungmin
Copy link
Collaborator

  • redux dispatches action call firestore api
  • Save review in reviews field of groups collection

- redux dispatches action call firestore api
- save study review in reviews of group collection
@saseungmin saseungmin added the enhancement New feature or request label Jan 30, 2021
Comment on lines +82 to +88
export const postUpdateStudyReview = async ({ id, review }) => {
const group = db.collection('groups').doc(id);

await group.set({
reviews: fireStore.FieldValue.arrayUnion(review),
}, { merge: true });
};
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

firebase api 테스트에 대한 고민 좀 해보자.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant