mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Merge pull request #1530 from gradido/fix-possible-sql-error
fix: Possible SQL Exception in User Search
This commit is contained in:
commit
b557a17a1e
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user