diff --git a/src/index.ts b/src/index.ts index a0736a2..6f7f2f4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -62,8 +62,7 @@ const run = async (): Promise => { return msToDays(diff) > input.inactiveDays; }).sort((a, b) => ( a.last_activity_at === null || a.last_activity_at === undefined || b.last_activity_at === null || b.last_activity_at === undefined ? - -1 : - new Date(a.last_activity_at).getTime() - new Date(b.last_activity_at).getTime() + -1 : new Date(a.last_activity_at).getTime() - new Date(b.last_activity_at).getTime() )); core.setOutput('inactive-seats', JSON.stringify(inactiveSeats)); @@ -137,4 +136,4 @@ const run = async (): Promise => { }; -run(); \ No newline at end of file +run();