stuysu / epsilon

all in one service for stuyvesant high school.
8 stars 0 forks source link

The way creator memberships work is weird. #36

Closed randysim closed 1 week ago

randysim commented 1 week ago

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.

randysim commented 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.

randysim commented 1 week ago

just kidding, this was such an issue for me that i went ahead and fixed it, sorry