-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
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.
src/routes/members/index.ts
Outdated
} | ||
if ( | ||
!(await operationsCollection | ||
.where("creator_uid", "==", loggedInUid) |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
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.