mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Merge pull request #2052 from gradido/2051-list-contribution-add-deleted
Feat: Add confirmedBy and confirmedAt for the contribution query.
This commit is contained in:
commit
ceae3915f9
@ -12,6 +12,8 @@ export class Contribution {
|
||||
this.memo = contribution.memo
|
||||
this.createdAt = contribution.createdAt
|
||||
this.deletedAt = contribution.deletedAt
|
||||
this.confirmedAt = contribution.confirmedAt
|
||||
this.confirmedBy = contribution.confirmedBy
|
||||
}
|
||||
|
||||
@Field(() => Number)
|
||||
@ -31,6 +33,12 @@ export class Contribution {
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
deletedAt: Date | null
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
confirmedAt: Date | null
|
||||
|
||||
@Field(() => Number, { nullable: true })
|
||||
confirmedBy: number | null
|
||||
}
|
||||
|
||||
@ObjectType()
|
||||
|
||||
@ -58,6 +58,7 @@ export class ContributionResolver {
|
||||
order: {
|
||||
createdAt: order,
|
||||
},
|
||||
withDeleted: true,
|
||||
skip: (currentPage - 1) * pageSize,
|
||||
take: pageSize,
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user