remove unused constructor

This commit is contained in:
Ulf Gebhardt 2023-02-02 03:55:01 +01:00
parent 7834adfc84
commit 214fbe0a5c
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

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