Skip to content

Commit

Permalink
chore: event 내림차순으로 불러오도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
seokahi committed Nov 24, 2022
1 parent 1a522f3 commit 542c319
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/service/EventService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class EventService {
if(eventStatus == true) {
return await Event.find({where: {endAt: MoreThanOrEqual(new Date()),category:category},order: {id: 'DESC'},skip: pageSize * pageNum,take: pageSize});
} else {
return await Event.find({where:{category:category},skip: pageSize * pageNum,take: pageSize});
return await Event.find({where:{category:category},order: {id: 'DESC'},skip: pageSize * pageNum,take: pageSize});
}

}
Expand Down

0 comments on commit 542c319

Please sign in to comment.