mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
getPendingCreations excludes confirmed contributions
This commit is contained in:
parent
08f72e2777
commit
d048a00143
@ -281,7 +281,7 @@ export class AdminResolver {
|
||||
@Authorized([RIGHTS.SEARCH_PENDING_CREATION])
|
||||
@Query(() => [PendingContribution])
|
||||
async getPendingCreations(): Promise<PendingContribution[]> {
|
||||
const contributions = await Contribution.find()
|
||||
const contributions = await Contribution.find({ where: { confirmedAt: IsNull() } })
|
||||
if (contributions.length === 0) {
|
||||
return []
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user