Merge branch 'master' into transaction-link-list-query

This commit is contained in:
Moriz Wahl 2022-03-11 14:13:46 +01:00
commit 7c104fc705
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ export enum TransactionTypeId {
RECEIVE = 3,
// This is a virtual property, never occurring on the database
DECAY = 4,
TRANSACTION_LINK,
TRANSACTION_LINK = 5,
}
registerEnumType(TransactionTypeId, {

View File

@ -116,7 +116,7 @@ export class TransactionResolver {
const { sumHoldAvailableAmount, sumAmount, lastDate, firstDate } =
await transactionLinkRepository.summary(user.id, now)
// decay transaction
// decay & link transactions
if (!onlyCreations && currentPage === 1 && order === Order.DESC) {
transactions.push(
virtualDecayTransaction(lastTransaction.balance, lastTransaction.balanceDate, now, self),