Skip to content

Commit

Permalink
Merge pull request #337 from CheckMate-sookmyung/fix/#326-event-list
Browse files Browse the repository at this point in the history
#326 fix: 이벤트 목록 api 수정
  • Loading branch information
misung-dev authored Sep 23, 2024
2 parents b8936c9 + 47e8d9e commit 9c67c56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/Pages/EventCardListPage/EventCardListPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ const EventCardListPage = () => {
useEffect(() => {
const fetchData = async () => {
try {
const response = await axiosInstance.get(
`/api/v1/events?memberId=${USER_ID}&authority=MEMBER&member=true`,
);
const response = await axiosInstance.get(`/api/v1/events`);
const parsedEvents = response.data.map((event) => {
const startDate = event.eventSchedules[0];
const endDate =
Expand Down
4 changes: 1 addition & 3 deletions src/pages/EventCardListPage/EventCardListPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ const EventCardListPage = () => {
useEffect(() => {
const fetchData = async () => {
try {
const response = await axiosInstance.get(
`/api/v1/events?memberId=${USER_ID}&authority=MEMBER&member=true`,
);
const response = await axiosInstance.get(`/api/v1/events`);
const parsedEvents = response.data.map((event) => {
const startDate = event.eventSchedules[0];
const endDate =
Expand Down

0 comments on commit 9c67c56

Please sign in to comment.