mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
use enum for comparison instead of a number
This commit is contained in:
parent
9953945bb5
commit
a4744dd588
@ -50,7 +50,7 @@ async function calculateAndAddDecayTransactions(
|
|||||||
const transactionIndiced: dbTransaction[] = []
|
const transactionIndiced: dbTransaction[] = []
|
||||||
transactions.forEach((transaction: dbTransaction) => {
|
transactions.forEach((transaction: dbTransaction) => {
|
||||||
transactionIndiced[transaction.id] = transaction
|
transactionIndiced[transaction.id] = transaction
|
||||||
if (transaction.transactionTypeId === 2) {
|
if (transaction.transactionTypeId === TransactionTypeId.SEND) {
|
||||||
involvedUserIds.push(transaction.transactionSendCoin.userId)
|
involvedUserIds.push(transaction.transactionSendCoin.userId)
|
||||||
involvedUserIds.push(transaction.transactionSendCoin.recipiantUserId)
|
involvedUserIds.push(transaction.transactionSendCoin.recipiantUserId)
|
||||||
}
|
}
|
||||||
@ -97,7 +97,7 @@ async function calculateAndAddDecayTransactions(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// sender or receiver when user has sended money
|
// sender or receiver when user has sent money
|
||||||
// group name if creation
|
// group name if creation
|
||||||
// type: gesendet / empfangen / geschöpft
|
// type: gesendet / empfangen / geschöpft
|
||||||
// transaktion nr / id
|
// transaktion nr / id
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user