You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: surf-transaction-core/src/main/kotlin/dev/slne/surf/transaction/core/db/transaction/TransactionRepositoryImpl.kt
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ class TransactionRepositoryImpl : TransactionRepository {
47
47
}
48
48
49
49
if (receiverID !=null&&!transaction.ignoreMinimumAmount) {
50
-
val balanceAfterTransaction = balanceDecimal0(receiverID, currencyID, forUpdate =true)
50
+
val balanceAfterTransaction = balanceDecimal0(receiverID, currencyID)
51
51
if (balanceAfterTransaction < transaction.currency.minimumAmount) {
52
52
returnTransactionResult.ReceiverInsufficientFunds
53
53
}
@@ -68,8 +68,7 @@ class TransactionRepositoryImpl : TransactionRepository {
68
68
69
69
suspendfunbalanceDecimal0(
70
70
accountID:Long,
71
-
currencyID:Long,
72
-
forUpdate:Boolean = false
71
+
currencyID:Long
73
72
): BigDecimal {
74
73
returnTransactionTable
75
74
.innerJoin(CurrencyTable)
@@ -78,7 +77,6 @@ class TransactionRepositoryImpl : TransactionRepository {
0 commit comments