Skip to content

Commit

Permalink
[Fix] Change renewal report to most recent expiring permits (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
leogjhuang committed Apr 29, 2023
1 parent 131a434 commit ee16d98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reports/resolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const generatePermitHoldersReport: Resolver<
// Fetches rcdPermitId from latest permit
permits: {
orderBy: {
createdAt: SortOrder.DESC,
expiryDate: SortOrder.DESC,
},
take: 1,
select: {
Expand Down

0 comments on commit ee16d98

Please sign in to comment.