mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Changed the response to array of openCreations.
This commit is contained in:
parent
4f61af06aa
commit
ade3719c33
@ -27,10 +27,10 @@ export class AdminResolver {
|
||||
return users
|
||||
}
|
||||
|
||||
@Query(() => Boolean)
|
||||
@Query(() => [Number])
|
||||
async createPendingCreation(
|
||||
@Args() { email, amount, note, creationDate, moderator }: CreatePendingCreationArgs,
|
||||
): Promise<boolean> {
|
||||
): Promise<number[]> {
|
||||
const userRepository = getCustomRepository(UserRepository)
|
||||
const user = await userRepository.findByEmail(email)
|
||||
|
||||
@ -48,7 +48,7 @@ export class AdminResolver {
|
||||
|
||||
pendingCreationRepository.save(loginPendingTaskAdmin)
|
||||
}
|
||||
return false
|
||||
return await getUserCreations(user.id)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user