fix sort by read time bug

This commit is contained in:
Hongbo Wu
2023-09-20 10:07:38 +08:00
parent dc98719b85
commit a35e6c0147
4 changed files with 23 additions and 7 deletions

View File

@ -89,7 +89,7 @@ export const subscriptionsResolver = authorized<
}
const subscriptions = await queryBuilder
.orderBy('subscription.' + sortBy, sortOrder)
.orderBy(`subscription.${sortBy}`, sortOrder, 'NULLS LAST')
.getMany()
return {