Add transfer tracking and secure admin access
This commit is contained in:
@@ -75,7 +75,9 @@ public sealed class BudgetRecommendationService(
|
||||
.Where(transaction =>
|
||||
transaction.UserId == userId &&
|
||||
transaction.LedgerId == ledgerId &&
|
||||
transaction.Type == TransactionType.Expense &&
|
||||
(transaction.Type == TransactionType.Expense ||
|
||||
transaction.Type == TransactionType.Transfer &&
|
||||
transaction.TransferDirection == TransferDirection.Out) &&
|
||||
transaction.OccurredAt >= currentStart &&
|
||||
transaction.OccurredAt < currentEnd)
|
||||
.SumAsync(transaction => transaction.Amount, ct);
|
||||
@@ -179,7 +181,9 @@ public sealed class BudgetRecommendationService(
|
||||
.Where(transaction =>
|
||||
transaction.UserId == userId &&
|
||||
transaction.LedgerId == ledgerId &&
|
||||
transaction.Type == TransactionType.Expense &&
|
||||
(transaction.Type == TransactionType.Expense ||
|
||||
transaction.Type == TransactionType.Transfer &&
|
||||
transaction.TransferDirection == TransferDirection.Out) &&
|
||||
transaction.OccurredAt >= historyStart &&
|
||||
transaction.OccurredAt < currentEnd)
|
||||
.Select(transaction => new
|
||||
|
||||
Reference in New Issue
Block a user