The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: use nulls last when sorting users (#30430)
Alaister Youngeb7b0818d1ef
diff --git a/apps/studio/data/auth/users-infinite-query.ts b/apps/studio/data/auth/users-infinite-query.tsindex 8557554bdd2..97ec9d82287 100644--- a/apps/studio/data/auth/users-infinite-query.ts+++ b/apps/studio/data/auth/users-infinite-query.ts@@ -35,7 +35,7 @@ export const getUsersSQL = ({keywords?: stringproviders?: string[]sort: string- order: string+ order: 'asc' | 'desc'}) => {const offset = page * USERS_PAGE_LIMITconst hasValidKeywords = keywords && keywords !== ''@@ -75,7 +75,7 @@ export const getUsersSQL = ({const sortOn = sort ?? 'created_at'const sortOrder = order ?? 'desc'- return `${baseQueryUsers}${conditions.length > 0 ? ` where ${combinedConditions}` : ''} order by "${sortOn}" ${sortOrder} limit ${USERS_PAGE_LIMIT} offset ${offset};`+ return `${baseQueryUsers}${conditions.length > 0 ? ` where ${combinedConditions}` : ''} order by "${sortOn}" ${sortOrder} nulls last limit ${USERS_PAGE_LIMIT} offset ${offset};`}export type UsersData = { result: User[] }