add id to gdt entry

This commit is contained in:
einhornimmond 2021-08-31 12:11:17 +02:00
parent 41482aab1a
commit 9b2afaafe5
2 changed files with 5 additions and 0 deletions

View File

@ -15,6 +15,7 @@ export enum GdtEntryType {
@ObjectType()
export class GdtEntry {
constructor(json: any) {
this.id = json.id
this.amount = json.amount
this.date = json.date
this.email = json.email
@ -27,6 +28,9 @@ export class GdtEntry {
this.gdt = json.gdt
}
@Field(() => Number)
id: number
@Field(() => Number)
amount: number

View File

@ -129,6 +129,7 @@ export const listGDTEntriesQuery = gql`
listGDTEntries(currentPage: $currentPage, pageSize: $pageSize, sessionId: $sessionId) {
count
gdtEntries {
id
amount
date
comment