Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
austenstone authored Oct 24, 2023
1 parent 7b75a86 commit 756698a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ const run = async (): Promise<void> => {
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));
Expand Down Expand Up @@ -137,4 +136,4 @@ const run = async (): Promise<void> => {

};

run();
run();

0 comments on commit 756698a

Please sign in to comment.