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

[SUP] Create function to get user data for My Space page #146

Open
wiktoriasalamon opened this issue Aug 29, 2024 · 0 comments
Open

[SUP] Create function to get user data for My Space page #146

wiktoriasalamon opened this issue Aug 29, 2024 · 0 comments
Assignees

Comments

@wiktoriasalamon
Copy link
Collaborator

There is a need to refactor fetching user data for My Space page (frontend/src/app/(app)/(root)/my-space/page.tsx).

Create a new function in supabase.

Data should be fetched by user id (or for authenticated user if possible).

Get all user data from profiles table.
Get data from user_ladder for the current user (if there is more than one row for the user return only the row with is_main_ladder = TRUE).
Get data from band table for the ladder selected from user_ladder table.

For more details on which columns are needed check the file: frontend/src/app/(app)/(root)/my-space/page.tsx.

@JakubKramp JakubKramp self-assigned this Aug 30, 2024
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

No branches or pull requests

2 participants