Describe the bug
Currently, if people are added to events multiple times, it appears as a duplicate in the backend. Currently, it doesn't seem to affect the frontend, but I don't know how long that'll last.
To Reproduce
Go to an event
Add a prefect/participant to that event
Add that same one again.
Expected behavior
Only one entry in the database, instead there are two.
Additional context
Add an ON CONFLICT DO NOTHING part to the SQL query here, and remove the people who are already added from the frontend.
Describe the bug Currently, if people are added to events multiple times, it appears as a duplicate in the backend. Currently, it doesn't seem to affect the frontend, but I don't know how long that'll last.
To Reproduce
Expected behavior Only one entry in the database, instead there are two.
Additional context Add an
ON CONFLICT DO NOTHING
part to the SQL query here, and remove the people who are already added from the frontend.