Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Spond.update_events(uid...) will modify or overwrite another event, if no event matching uid exists bug #161

Conversation

elliot-100
Copy link
Collaborator

This PR refactors the relevant code to use self._get_entity(self._EVENT, uid) to ensure an error is raised when the uid is not matched, and prevent any event modification.

@elliot-100 elliot-100 self-assigned this Oct 21, 2024
@elliot-100 elliot-100 merged commit 997ea5e into Olen:main Oct 21, 2024
5 checks passed
@elliot-100 elliot-100 deleted the 160-spondupdate_eventsuid-will-modify-or-overwrite-another-event-if-no-event-matching-uid-exists branch October 21, 2024 12:59
@elliot-100 elliot-100 added the bug Something isn't working label Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Spond.update_events(uid...) will modify or overwrite another event, if no event matching uid exists
1 participant