Skip to content

Commit

Permalink
fix: community 정렬 미수행 bug 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
NaayoungKwon committed Dec 15, 2022
1 parent 458d241 commit ba41a96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/apps/api/src/community/helper/sortedByCreateTime.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const sortedByCreateTime = (a, b) => {
return a.createdAt - b.createdAt;
return a.createdAt < b.createdAt ? -1 : a.createdAt > b.createdAt ? 1 : 0;
};

1 comment on commit ba41a96

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests Skipped Failures Errors Time
19 0 💤 17 ❌ 0 🔥 23.641s ⏱️

Please sign in to comment.