Skip to content

Update planner util getPlansByRosterId to return a single plan #5335

@milanholemans

Description

@milanholemans

Currently, we have a Planner util function called getPlansByRosterId that returns all plans within a Planner Roster.
Since a Planner Roster can contain only 1 plan, let's update this util function to return a single plan object instead of an array with 1 plan object.

Situation now:

getPlansByRosterId(...): Promise<PlannerPlan[]>

Goal:

getPlanByRosterId(...): Promise<PlannerPlan>

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions