From 0d7bc392e7223ec7e6560ff82ef7e9a9a3474126 Mon Sep 17 00:00:00 2001 From: sdjdd Date: Thu, 7 Dec 2023 14:49:54 +0800 Subject: [PATCH] feat(next/api): fetch more than 100 admin users --- next/api/src/model/User.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/next/api/src/model/User.ts b/next/api/src/model/User.ts index cbc45c388..3a0635b66 100644 --- a/next/api/src/model/User.ts +++ b/next/api/src/model/User.ts @@ -423,7 +423,7 @@ export class User extends Model { } } - return qb.find({ useMasterKey: true }); + return qb.limit(1000).find({ useMasterKey: true }); } static async getCustomerServices(active?: boolean): Promise {