Skip to content

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 테스트에 대한 고민 좀 해보자.

@saseungmin saseungmin merged commit 78c441a into CodeSoom:main Jan 30, 2021
@saseungmin saseungmin deleted the sumbit-action-to-study-review-form branch July 5, 2021 19:54
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