Skip to content

Commit 3a5a2f3

Browse files
committed
fix(deduplicate): fixed sort
1 parent 59390fa commit 3a5a2f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

action/lib/deduplicate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default async function (octokit) {
2525
// pick relevant properties
2626
.map(run => ({ id: run.id, name: run.name, created_at: run.created_at }))
2727
// sort
28-
.sort(run => (a, b) => new Date(b.created_at) - new Date(a.created_at))
28+
.sort((a, b) => new Date(b.created_at) - new Date(a.created_at))
2929

3030
// remove last one
3131
cancellable.pop()

0 commit comments

Comments
 (0)