Skip to content

Commit

Permalink
fix(api/notice): 운영기간이 지난 데이터는 반환하지 않는 기능 동작하도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
pp449 committed Nov 29, 2023
1 parent e2899b3 commit c6cf984
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/apis/notice/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ export const getWhalebe = async (): Promise<WhalebeData[]> => {
).padStart(2, '0')}.${String(today.getDate()).padStart(2, '0')}`;

const filteredData = whalebeData
.filter((data) => data.date >= todayString)
.filter(
(data) =>
data.recruitment_period.split('~')[1].trim() >= todayString || data,
)
.slice(0, 7);
return filteredData;
} catch (error) {
Expand Down

0 comments on commit c6cf984

Please sign in to comment.