Skip to content

Commit

Permalink
feature: updating sector and queue dto uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanJaeger committed Aug 20, 2024
1 parent 9184842 commit f73f35b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions chats/apps/projects/usecases/sector_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def create(self, body, sector_dtos):
work_start=sector.working_hours["init"],
work_end=sector.working_hours["close"],
)
sector["uuid"] = str(created_sector.uuid)
sector.uuid = str(created_sector.uuid)

for tag in sector.tags:
SectorTag.objects.create(name=tag, sector=created_sector)
Expand All @@ -74,7 +74,8 @@ def create(self, body, sector_dtos):
sector=created_sector,
name=queue.name,
)
queue["uuid"] = str(created_queue.uuid)
queue.uuid = str(created_queue.uuid)

content["queues"].append(
{"uuid": str(created_queue.uuid), "name": created_queue.name}
)
Expand Down

0 comments on commit f73f35b

Please sign in to comment.