mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Add a contribution message when things are changed.
This commit is contained in:
parent
43705b3a40
commit
e29c9a111d
@ -219,18 +219,20 @@ export class ContributionResolver {
|
||||
contributionMessage.createdAt = contributionToUpdate.updatedAt
|
||||
? contributionToUpdate.updatedAt
|
||||
: contributionToUpdate.createdAt
|
||||
const newMessage = ''
|
||||
let changeMessage = ''
|
||||
if (contributionToUpdate.memo !== memo) {
|
||||
//
|
||||
|
||||
// TODO: Add message to changeMessage
|
||||
changeMessage += 'Neuer Memo: ' + memo + '\n'
|
||||
}
|
||||
if (contributionToUpdate.amount !== amount) {
|
||||
//
|
||||
// TODO: Add amount to changeMessage
|
||||
changeMessage += 'Neuer Betrag: ' + amount + '\n'
|
||||
}
|
||||
if (contributionToUpdate.contributionDate !== new Date(creationDate)) {
|
||||
//
|
||||
// TODO: Add contributionDate to changeMessage
|
||||
changeMessage += 'Neuer Beitragsdatum: ' + creationDate + '\n'
|
||||
}
|
||||
contributionMessage.message = ``
|
||||
contributionMessage.message = changeMessage
|
||||
contributionMessage.type = ContributionMessageType.HISTORY
|
||||
|
||||
contributionToUpdate.amount = amount
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user