Skip to content

Commit

Permalink
Refactor last const function
Browse files Browse the repository at this point in the history
  • Loading branch information
wweitzel committed Dec 1, 2023
1 parent caef73c commit c6ac840
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/api/goals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export async function getGoals(pagination?: Pagination, filter?: GetGoalsFilter)
return response.data;
}

export const getGoal = async (id: string): Promise<GetGoalResponse> => {
export async function getGoal(id: string) {
const response = await axios.get<GetGoalResponse>(`${API_BASE_URL}/goals/${id}`);
return response.data;
};
}

0 comments on commit c6ac840

Please sign in to comment.