Skip to content

fix: prevent duplicate attendance records#16

Merged
Rl0007 merged 1 commit into
BuildWithHussain:mainfrom
vishwajeet-13:fix/prevent-duplicate-attendance-records
May 23, 2026
Merged

fix: prevent duplicate attendance records#16
Rl0007 merged 1 commit into
BuildWithHussain:mainfrom
vishwajeet-13:fix/prevent-duplicate-attendance-records

Conversation

@vishwajeet-13
Copy link
Copy Markdown
Contributor

@vishwajeet-13 vishwajeet-13 commented May 23, 2026

Problem

Getting duplicate Zoom Webinar Attendance Record rows per attendee per webinar.

image

Root cause: doc.insert(ignore_if_duplicate=True) only catches MySQL's DuplicateEntryError, which requires a UNIQUE constraint. The doctype has name (random hash, never collides). So the flag silently did nothing.

Bonus bug: sync_registrations_from_zoom was setting attendance_synced = 1
on success. If a user clicked "Sync Registrations" standalone, the webinar was marked attendance-synced and the daily cron skipped it.

@Rl0007 Rl0007 merged commit 9d84280 into BuildWithHussain:main May 23, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants