Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions src/dispatch/participant/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,13 @@ def get_or_create(
)
)

# we associate the service with the participant
participant.service_id = service_id
service = service_service.get(db_session=db_session, service_id=service_id)
participant.service = service
if not participant.service:
# we only associate the service with the participant once to prevent overwrites
service = service_service.get(db_session=db_session, service_id=service_id)
if service:
participant.service_id = service_id
participant.service = service

db_session.commit()

return participant
Expand Down