mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
allow gdtSum to be null
This commit is contained in:
parent
0697983c5e
commit
58ee714e17
@ -13,8 +13,8 @@ export class TransactionList {
|
|||||||
this.decayDate = ''
|
this.decayDate = ''
|
||||||
}
|
}
|
||||||
|
|
||||||
@Field(() => Number)
|
@Field(() => Number, { nullable: true })
|
||||||
gdtSum: number
|
gdtSum: number | null
|
||||||
|
|
||||||
@Field(() => Number)
|
@Field(() => Number)
|
||||||
count: number
|
count: number
|
||||||
|
|||||||
@ -331,7 +331,7 @@ export class TransactionResolver {
|
|||||||
)
|
)
|
||||||
|
|
||||||
// get gdt sum
|
// get gdt sum
|
||||||
transactions.gdtSum = 0
|
transactions.gdtSum = null
|
||||||
try {
|
try {
|
||||||
const resultGDTSum = await apiPost(`${CONFIG.GDT_API_URL}/GdtEntries/sumPerEmailApi`, {
|
const resultGDTSum = await apiPost(`${CONFIG.GDT_API_URL}/GdtEntries/sumPerEmailApi`, {
|
||||||
email: userEntity.email,
|
email: userEntity.email,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user