From c6ac840fb021fc352e9e7785e82e711c27ddfcac Mon Sep 17 00:00:00 2001 From: Wes Weitzel Date: Thu, 30 Nov 2023 21:16:10 -0800 Subject: [PATCH] Refactor last const function --- src/lib/api/goals.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/api/goals.ts b/src/lib/api/goals.ts index 947d268..09aa6fa 100644 --- a/src/lib/api/goals.ts +++ b/src/lib/api/goals.ts @@ -52,7 +52,7 @@ export async function getGoals(pagination?: Pagination, filter?: GetGoalsFilter) return response.data; } -export const getGoal = async (id: string): Promise => { +export async function getGoal(id: string) { const response = await axios.get(`${API_BASE_URL}/goals/${id}`); return response.data; -}; +}