From eec39f7d9a02f65643060bf971278e93b0b0dc97 Mon Sep 17 00:00:00 2001 From: wangsijie Date: Sun, 29 Jan 2023 15:30:05 +0800 Subject: [PATCH] fix(core): list users order by created_at (#3019) --- packages/core/src/queries/user.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/core/src/queries/user.ts b/packages/core/src/queries/user.ts index f40103760..2f58d8aad 100644 --- a/packages/core/src/queries/user.ts +++ b/packages/core/src/queries/user.ts @@ -156,6 +156,7 @@ export const createUserQueries = (pool: CommonQueryMethods) => { )} from ${table} ${buildUserConditions(search, excludeUserIds, userIds)} + order by ${fields.createdAt} desc limit ${limit} offset ${offset} `