Skip to content

Commit

Permalink
update query params
Browse files Browse the repository at this point in the history
  • Loading branch information
EseAlli committed Jun 28, 2024
1 parent 0802f76 commit 99f52af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/queries.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ export const getAllActivities = async () => {

export const getActivityCourses = async (activityID) => {
const activityCourses = await axios.get(
`${baseURL}course?activityId=${activityID}`
`${baseURL}course?activity=${activityID}`
);
return activityCourses.data.data;
};

export const getActivityEvents = async (activityID) => {
const activityEvents = await axios.get(
`${baseURL}event?activityId=${activityID}`
`${baseURL}event?activity=${activityID}`
);
return activityEvents.data.data;
};
Expand Down

0 comments on commit 99f52af

Please sign in to comment.