Skip to content

Commit

Permalink
Add: Organization Authorization create
Browse files Browse the repository at this point in the history
  • Loading branch information
zMardone committed Dec 7, 2023
1 parent 046d027 commit 0e6ea32
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bothub/project/consumers/project_consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

from ..usecases.project.projectdto import ProjectCreationDTO
from ..usecases.project.creation import ProjectCreationUseCase
from ..usecases.organization.creation import OrganizationAuthorizationCreateUsecase

from bothub.event_driven.parsers import JSONParser
from bothub.event_driven.consumer.consumers import EDAConsumer
Expand All @@ -27,6 +28,11 @@ def consume(self, message: amqp.Message):

project_creation = ProjectCreationUseCase()
project_creation.create_project(project_dto, body.get("user_email"))
auth_creation = OrganizationAuthorizationCreateUsecase()
auth_creation.eda_consume_organization_authorization(
authorizations=body.get("authorizations"),
organization_id=body.get("organization_id")
)

message.channel.basic_ack(message.delivery_tag)

Expand Down

0 comments on commit 0e6ea32

Please sign in to comment.