Merge pull request #1530 from gradido/fix-possible-sql-error

fix: Possible SQL Exception in User Search
This commit is contained in:
Moriz Wahl 2022-02-23 18:11:09 +01:00 committed by GitHub
commit b557a17a1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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(