mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-16 23:24:34 +03:00
fix(backend): invitation with new brains did not work (#2378)
# Description Please include a summary of the changes and the related issue. Please also include relevant motivation and context. ## Checklist before requesting a review Please delete options that are not relevant. - [ ] My code follows the style guidelines of this project - [ ] I have performed a self-review of my code - [ ] I have commented hard-to-understand areas - [ ] I have ideally added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged ## Screenshots (if appropriate):
This commit is contained in:
parent
c5fcceb30c
commit
d273426c01
@ -328,29 +328,12 @@ class BrainService:
|
||||
if brain == None:
|
||||
return None
|
||||
|
||||
if brain.brain_type == BrainType.API:
|
||||
brain_definition = api_brain_definition_service.get_api_brain_definition(
|
||||
brain_id
|
||||
)
|
||||
brain.brain_definition = brain_definition
|
||||
|
||||
if brain.brain_type == BrainType.COMPOSITE:
|
||||
brain.connected_brains_ids = (
|
||||
self.composite_brains_connections_repository.get_connected_brains(
|
||||
brain_id
|
||||
)
|
||||
)
|
||||
if brain.brain_type == BrainType.INTEGRATION:
|
||||
brain.integration = (
|
||||
self.integration_brains_repository.get_integration_brain(
|
||||
brain_id, user_id
|
||||
)
|
||||
)
|
||||
brain.integration_description = (
|
||||
self.integration_description_repository.get_integration_description(
|
||||
brain.integration.integration_id
|
||||
)
|
||||
)
|
||||
return brain
|
||||
|
||||
def get_connected_brains(self, brain_id: UUID) -> list[BrainEntity]:
|
||||
|
Loading…
Reference in New Issue
Block a user