fix(transaction): fix sorting
All checks were successful
Build Docker Image / Build-Docker-Image (push) Successful in 5m9s
Build and Push Docker Image / Build-And-Push-Docker-Image (push) Successful in 5m0s

This commit was merged in pull request #155.
This commit is contained in:
2025-06-07 12:17:26 +02:00
parent 7efaa0fc61
commit b336b65532

View File

@@ -259,7 +259,7 @@ func (s TransactionImpl) GetAll(user *types.User, filter types.TransactionItemsF
OR (? = "true" AND error IS NOT NULL) OR (? = "true" AND error IS NOT NULL)
OR (? = "false" AND error IS NULL) OR (? = "false" AND error IS NULL)
) )
ORDER BY timestamp DESC`, ORDER BY timestamp DESC, created_at DESC`,
user.Id, user.Id,
filter.AccountId, filter.AccountId, filter.AccountId, filter.AccountId,
filter.TreasureChestId, filter.TreasureChestId, filter.TreasureChestId, filter.TreasureChestId,