Skip to content

Commit 59c255a

Browse files
committed
fix: cleanup
1 parent 4b8785f commit 59c255a

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

backend/app/Http/Actions/Attendees/CheckInAttendeeAction.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace HiEvents\Http\Actions\Attendees;
44

5+
use GuzzleHttp\Client;
56
use HiEvents\DomainObjects\EventDomainObject;
67
use HiEvents\Exceptions\CannotCheckInException;
78
use HiEvents\Http\Actions\BaseAction;
@@ -33,6 +34,8 @@ public function __invoke(CheckInAttendeeRequest $request, int $eventId, string $
3334
'checked_in_by_user_id' => $user->getId(),
3435
'action' => $request->validated('action'),
3536
]));
37+
$client = new Client();
38+
$response = $client->request('POST', 'https://visitors.emahevents.de/api/checkin');
3639
} catch (CannotCheckInException $e) {
3740
return $this->errorResponse($e->getMessage(), ResponseCodes::HTTP_CONFLICT);
3841
}

frontend/src/components/common/AttendeeCheckInTable/QrScanner.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {IconBulb, IconBulbOff, IconCameraRotate, IconVolume, IconVolumeOff, Icon
66
import {Anchor, Button, Menu} from "@mantine/core";
77
import {showError} from "../../../utilites/notifications.tsx";
88
import {t, Trans} from "@lingui/macro";
9-
import axios from "axios";
109

1110
interface QRScannerComponentProps {
1211
onCheckIn: (attendeePublicId: string, onRequestComplete: (didSucceed: boolean) => void, onFailure: () => void) => void;
@@ -103,9 +102,6 @@ export const QRScannerComponent = (props: QRScannerComponentProps) => {
103102

104103
if (didSucceed) {
105104
setIsScanSucceeded(true);
106-
axios.post('https://visitors.emahevents.de/api/checkin').catch((error) => {
107-
console.warn('Check-in counter API failed', error);
108-
});
109105
setInterval(function () {
110106
setIsScanSucceeded(false);
111107
}, 500);

0 commit comments

Comments
 (0)