fix: Possible SQL Exception in User Search

This commit is contained in:
Moriz Wahl 2022-02-23 08:18:06 +01:00
parent b425124721
commit 57e9e825f1

View File

@ -51,6 +51,13 @@ export class AdminResolver {
pageSize,
)
if (users.length === 0) {
return {
userCount: 0,
userList: [],
}
}
const creations = await getUserCreations(users.map((u) => u.id))
const adminUsers = await Promise.all(