Skip to content

Commit

Permalink
fix(events update): unable to mark visitor as unexpected (#122)
Browse files Browse the repository at this point in the history
after marking them as expected
  • Loading branch information
stakach authored Sep 28, 2021
1 parent bb01eb8 commit 8d78b96
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/controllers/events.cr
Original file line number Diff line number Diff line change
Expand Up @@ -437,18 +437,20 @@ class Events < Application
attend.visit_expected
else
attend.set({
visit_expected: true,
checked_in: false,
tenant_id: tenant.id,
checked_in: false,
tenant_id: tenant.id,
})
false
end

attend.update!({
event_id: meta.id.not_nil!,
guest_id: guest.id,
event_id: meta.id.not_nil!,
guest_id: guest.id,
visit_expected: attendee.visit_expected.not_nil!,
})

next unless attend.visit_expected

if !previously_visiting || changing_room
spawn do
sys = system.not_nil!
Expand Down

0 comments on commit 8d78b96

Please sign in to comment.