mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Change the variable name contribution to contributions.
This commit is contained in:
parent
3718f0dc56
commit
a2eccb12ed
@ -48,9 +48,9 @@ export class ContributionResolver {
|
||||
@Ctx() context: Context,
|
||||
): Promise<Contribution[]> {
|
||||
const user = getUser(context)
|
||||
let contribution
|
||||
let contributions
|
||||
if (filterConfirmed) {
|
||||
contribution = await dbContribution.find({
|
||||
contributions = await dbContribution.find({
|
||||
where: {
|
||||
userId: user.id,
|
||||
confirmedBy: IsNull(),
|
||||
@ -62,7 +62,7 @@ export class ContributionResolver {
|
||||
take: pageSize,
|
||||
})
|
||||
} else {
|
||||
contribution = await dbContribution.find({
|
||||
contributions = await dbContribution.find({
|
||||
where: {
|
||||
userId: user.id,
|
||||
},
|
||||
@ -73,6 +73,6 @@ export class ContributionResolver {
|
||||
take: pageSize,
|
||||
})
|
||||
}
|
||||
return contribution.map((contr) => new Contribution(contr, new User(user)))
|
||||
return contributions.map((contribution) => new Contribution(contribution, new User(user)))
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user