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] - Create getTeamProjects Util #2798

Closed
1 task
caiodasilva2005 opened this issue Sep 7, 2024 · 0 comments · Fixed by #2830
Closed
1 task

[Home Page] - Create getTeamProjects Util #2798

caiodasilva2005 opened this issue Sep 7, 2024 · 0 comments · Fixed by #2830

Comments

@caiodasilva2005
Copy link
Contributor

Description

We need a way to retrieve all the projects assigned to a team. We want a util in the backend in teams.utils.ts that takes in a string teamId and returns all the projects assigned to the team.

Acceptance Criteria

  • a util function is created that takes in a team id and returns all projects assigned to the team

Proposed Solution

Take a look at how we query the backend with prisma. For this function, you have to query the Team model and return the projects field within the team.

Mocks

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants