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

Record invite confirmed state #49

Merged
merged 2 commits into from
Jun 22, 2018
Merged

Conversation

rahulgi
Copy link
Member

@rahulgi rahulgi commented Jun 22, 2018

Add the is_invite_confirmed field to members and update it to true when
a member is trusted by the member they requested an invite from.

Add the is_invite_confirmed field to members and update it to true when
a member is trusted by the member they requested an invite from.
}
if (
!(await operationsCollection
.where("creator_uid", "==", loggedInUid)
Copy link
Member

Choose a reason for hiding this comment

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

make this part of the transaction too

@@ -97,7 +97,7 @@ const apiRoutes: Array<RouteHandler<ApiLocation>> = [
},
{
location: trustMemberApiLocation,
handler: membersRoutes.trust(membersCollection, operationsCollection)
handler: membersRoutes.trust(db, membersCollection, operationsCollection)
Copy link
Member

Choose a reason for hiding this comment

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

Hmm, maybe we should just make getting the membersCollection and operationsCollection a function that takes in db, since these are sorta redundant

Copy link
Member Author

Choose a reason for hiding this comment

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

Makes sense, created #51 to track.

@rahulgi rahulgi merged commit f6380cf into master Jun 22, 2018
@rahulgi rahulgi deleted the rg-add-is-invite-confirmed-state branch June 22, 2018 23:12
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.

4 participants