Skip to content

Commit 9fd4a50

Browse files
committed
Fixed an issue where the same lexorank would get generated twice. Fixes #4
1 parent 125b850 commit 9fd4a50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hooks/generateOrderRank.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const generateOrderRank: CollectionBeforeChangeHook = async ({data, req})
1717
where: {
1818
workflowStatus: data.workflowStatus
1919
},
20-
sort: 'workflowOrderRank',
20+
sort: '-workflowOrderRank',
2121
limit: 1,
2222
});
2323

0 commit comments

Comments
 (0)