in queryResolver.MySavedStudysets, the query includes AND s.private = false.
This excludes the user’s own private studysets that they have saved.
Recommended Fix:
Change the condition to AND (s.private = false OR s.user_id = $1)
I believe the frontend currently hides the save button from the UI on users' own studysets (public or private), but technically it's still possible through the API (I think). That's a larger consistency issue that doesn't really matter, but within the API at least it should be consistent what's possible to save and then view after saving lol.