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>
Currently, we have a Planner util function called
getPlansByRosterIdthat 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:
Goal: