Closed randysim closed 1 week ago
Really good first issue, so gonna leave this for newcomers (unless I get to it first)
This is just a code re-factoring request, the other solution works fine but is definitely hard to understand/scuffed for someone trying to hop onto the project.
just kidding, this was such an issue for me that i went ahead and fixed it, sorry
Initially, I made it so that an organization has a creator_id field. When it is created, it triggers an SQL database function that creates the membership. But now we added edge functions so it would probably make more sense to do it all in the edge function and get rid of a redundant field that will be hard to keep track of.