fix: invite registration on an event day does not mark attendance
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
This commit is contained in:
1 parent
fbbc5d0980
commit
c6d94fea67
3 files changed
+83
-2
No files matched your search
+3
-1
@@ -112,7 +112,9 @@ public class RegistrationService {
|
||||
e.setCapturedBy(QR);
|
||||
e.setConsentAt(req.consentAt());
|
||||
e.setConsentNoticeId(req.consentNoticeId());
|
||||
if (req.attend() || eventLeadService.isDuringEvent(req.eventUuid())) e.setAttendedAt(LocalDateTime.now());
|
||||
// An invite link can be opened anywhere, so an invite registration never counts as attending; the guest checks in.
|
||||
boolean atVenue = !"INVITE".equals(req.source()) && eventLeadService.isDuringEvent(req.eventUuid());
|
||||
if (req.attend() || atVenue) e.setAttendedAt(LocalDateTime.now());
|
||||
e = eventLeadRepository.saveAndFlush(e);
|
||||
eventLeadService.recordStatusChange(e, null, "OPEN", e.getCapturedAt(), QR);
|
||||
eventLeadService.saveInterests(e.getId(), req.companyId(), req.interestIds());
|
||||
|
||||
Reference in new issue
Block a user