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:
Hannes Heine 2022-07-15 11:40:33 +02:00 committed by GitHub
commit ceae3915f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -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()

View File

@ -58,6 +58,7 @@ export class ContributionResolver {
order: {
createdAt: order,
},
withDeleted: true,
skip: (currentPage - 1) * pageSize,
take: pageSize,
})