a
This commit is contained in:
@@ -137,7 +137,8 @@ public class EventService {
|
|||||||
@Autowired
|
@Autowired
|
||||||
UserAccountRepository userAccountRepository;
|
UserAccountRepository userAccountRepository;
|
||||||
|
|
||||||
public Optional<Event> settle(@Valid Event event) {
|
public Optional<Event> settle(@Valid Event eventFromUI) {
|
||||||
|
Event event = eventRepository.getReferenceById(eventFromUI.getId());
|
||||||
Long eventId = event.getId();
|
Long eventId = event.getId();
|
||||||
List<Transaction> allTransactions = transactionRepository
|
List<Transaction> allTransactions = transactionRepository
|
||||||
.findAllByEventId(eventId)
|
.findAllByEventId(eventId)
|
||||||
@@ -301,4 +302,7 @@ public class EventService {
|
|||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
TransactionItemRepository transactionItemRepository;
|
TransactionItemRepository transactionItemRepository;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
RegistrationRepository registrationRepository;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user