mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Withdrew userid from contribution object.
This commit is contained in:
parent
2f90bd9811
commit
c02f575780
@ -7,7 +7,6 @@ import { User } from './User'
|
||||
export class Contribution {
|
||||
constructor(contribution: dbContribution, user: User) {
|
||||
this.id = contribution.id
|
||||
this.userId = user ? user.id : null
|
||||
this.firstName = user ? user.firstName : null
|
||||
this.lastName = user ? user.lastName : null
|
||||
this.amount = contribution.amount
|
||||
@ -19,9 +18,6 @@ export class Contribution {
|
||||
@Field(() => Number)
|
||||
id: number
|
||||
|
||||
@Field(() => Number, { nullable: true })
|
||||
userId: number | null
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
firstName: string | null
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user