Skip to content

Commit 2318b6f

Browse files
committed
remove bad orderby in getUsers, this orderby makes all the sorting not work
1 parent 6f3751f commit 2318b6f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

apps/backend/src/datasources/postgres/UserDataSource.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,6 @@ export default class PostgresUserDataSource implements UserDataSource {
506506
.select(['*', database.raw('count(*) OVER() AS full_count')])
507507
.from('users')
508508
.join('institutions as i', { 'users.institution_id': 'i.institution_id' })
509-
.orderBy('users.user_id', orderDirection)
510509
.modify((query) => {
511510
if (filter) {
512511
query.andWhere((qb) => {

0 commit comments

Comments
 (0)