mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Remove TODO comments and change the written message to only the old values no prefix.
This commit is contained in:
parent
2c3db9da01
commit
0d304f9d71
@ -221,18 +221,15 @@ export class ContributionResolver {
|
||||
: contributionToUpdate.createdAt
|
||||
let changeMessage = ''
|
||||
if (contributionToUpdate.memo !== memo) {
|
||||
// TODO: Add message to changeMessage
|
||||
changeMessage += 'Alter Memo: ' + contributionToUpdate.memo + '\n'
|
||||
changeMessage += contributionToUpdate.memo + '\n'
|
||||
}
|
||||
if (contributionToUpdate.amount.toFixed(6) !== amount.toFixed(6)) {
|
||||
// TODO: Add amount to changeMessage
|
||||
changeMessage += 'Alter Betrag: ' + contributionToUpdate.amount + '\n'
|
||||
changeMessage += contributionToUpdate.amount + '\n'
|
||||
}
|
||||
const isDateDifferent =
|
||||
contributionToUpdate.contributionDate.getTime() !== new Date(creationDate).getTime()
|
||||
if (isDateDifferent) {
|
||||
// TODO: Add contributionDate to changeMessage
|
||||
changeMessage += 'Altes Beitragsdatum: ' + contributionToUpdate.contributionDate
|
||||
changeMessage += contributionToUpdate.contributionDate
|
||||
}
|
||||
contributionMessage.message = changeMessage
|
||||
contributionMessage.isModerator = false
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user