Skip to content

Commit

Permalink
fix lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
uidoyen committed Jul 3, 2023
1 parent aae10f3 commit 481e081
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions frontend/src/utilities/sortByCreatedAt.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export const sortByCreatedAt = (array: any[]): any[] => {
return array.sort((a, b) => new Date(b.created_at).getTime() - new Date(a.created_at).getTime());
};
export const sortByCreatedAt = (pipeline) =>
pipeline.sort((a, b) => new Date(b.created_at).getTime() - new Date(a.created_at).getTime());

0 comments on commit 481e081

Please sign in to comment.