It is not likely for two valid attendance events to be registered for a given student within a certain timeframe (say, 10 seconds).
If an attendance event is registered, and another attendance event exists for that student within the configurable "simultaneous" timeframe, the following should occur:
If the two events have the same type, the new event is ignored as it is likely a duplicate of the other event (likely, two different clients attempted to register the check-in at the same time)
If the two events have different type, the previous event is removed and the new event is ignored as the new event is likely an attempt to "undo" the old event.
This validation should also be added to the validate:attendance console command.
It is not likely for two valid attendance events to be registered for a given student within a certain timeframe (say, 10 seconds).
If an attendance event is registered, and another attendance event exists for that student within the configurable "simultaneous" timeframe, the following should occur:
This validation should also be added to the
validate:attendance
console command.