fixup! RVRNEXT-11 add controller for events
All checks were successful
rvr-nextgen/pipeline/pr-master This commit looks good
All checks were successful
rvr-nextgen/pipeline/pr-master This commit looks good
This commit is contained in:
parent
b103575a8f
commit
894239bddf
@ -98,7 +98,7 @@ class EventController implements IAuthenticationRequired, ISecured
|
||||
]);
|
||||
}
|
||||
|
||||
public function getEvent(): IContent
|
||||
public function getEvent(): ?IContent
|
||||
{
|
||||
$event = $this->eventRepository->getBySlug(Container::$request->query('eventSlug'));
|
||||
if (!$event) {
|
||||
@ -166,7 +166,7 @@ class EventController implements IAuthenticationRequired, ISecured
|
||||
return new JsonContent(['success' => true]);
|
||||
}
|
||||
|
||||
private function sumTransactions(Event $event): int
|
||||
private function sumTransactions(Event $event): float
|
||||
{
|
||||
$exchangeRateCalculator = new ExchangeRateCalculator($this->community->getMainCurrency());
|
||||
$transactions = $this->transactionRepository->getAllByEvent($event, true, ['currency']);
|
||||
|
Loading…
Reference in New Issue
Block a user