mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
remove unused constructor
This commit is contained in:
parent
7834adfc84
commit
214fbe0a5c
@ -1,4 +1,3 @@
|
|||||||
import { EventProtocol } from '@entity/EventProtocol'
|
|
||||||
import decimal from 'decimal.js-light'
|
import decimal from 'decimal.js-light'
|
||||||
import { EventProtocolType } from './EventProtocolType'
|
import { EventProtocolType } from './EventProtocolType'
|
||||||
|
|
||||||
@ -87,21 +86,6 @@ export class EventDeleteContributionLink extends EventBasicCt {}
|
|||||||
export class EventUpdateContributionLink extends EventBasicCt {}
|
export class EventUpdateContributionLink extends EventBasicCt {}
|
||||||
|
|
||||||
export class Event {
|
export class Event {
|
||||||
constructor()
|
|
||||||
constructor(event?: EventProtocol) {
|
|
||||||
if (event) {
|
|
||||||
this.id = event.id
|
|
||||||
this.type = event.type
|
|
||||||
this.createdAt = event.createdAt
|
|
||||||
this.userId = event.userId
|
|
||||||
this.xUserId = event.xUserId
|
|
||||||
this.xCommunityId = event.xCommunityId
|
|
||||||
this.transactionId = event.transactionId
|
|
||||||
this.contributionId = event.contributionId
|
|
||||||
this.amount = event.amount
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public setEventBasic(): Event {
|
public setEventBasic(): Event {
|
||||||
this.type = EventProtocolType.BASIC
|
this.type = EventProtocolType.BASIC
|
||||||
this.createdAt = new Date()
|
this.createdAt = new Date()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user