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

Home page: Show sessions belonging to a user #20

Merged
merged 5 commits into from
Jan 11, 2024

Conversation

Bahugunajii
Copy link
Member

@Bahugunajii Bahugunajii commented Jan 4, 2024

Description

  • Live classes and tests will be shown for the logged-in user based on the batch they belong to

Checklist

  • Self-testing

@Bahugunajii Bahugunajii changed the title show sessions for logged in user Show sessions belonging to a user Jan 4, 2024
@Bahugunajii Bahugunajii changed the title Show sessions belonging to a user Home: Show sessions belonging to a user Jan 4, 2024
@Bahugunajii Bahugunajii changed the title Home: Show sessions belonging to a user Home page: Show sessions belonging to a user Jan 4, 2024
@Bahugunajii Bahugunajii self-assigned this Jan 4, 2024
const groupSessions = await Promise.all(groupUserData.map(async (userData: GroupUser) => {
const groupType = await getGroupTypes(userData.group_type_id);

const groupTypeIds = groupType.map((type: any) => type.id);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should make an API on DB service for this call, so that instead of making 3 calls, we can make one call and DB service can handle the computation. But later... Can you bring this up when we meet?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah…even I was thinking about that

@Bahugunajii Bahugunajii merged commit 43f2388 into main Jan 11, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

3 participants