From 481e0812bad4d4d01ae1c5f2b1924bfb3987d3bb Mon Sep 17 00:00:00 2001 From: Ashique Ansari Date: Mon, 3 Jul 2023 19:37:35 +0530 Subject: [PATCH] fix lint issue --- frontend/src/utilities/sortByCreatedAt.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/utilities/sortByCreatedAt.ts b/frontend/src/utilities/sortByCreatedAt.ts index 83ecf0236a..b54396dbb2 100644 --- a/frontend/src/utilities/sortByCreatedAt.ts +++ b/frontend/src/utilities/sortByCreatedAt.ts @@ -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());