Fix missing organization context

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2026-01-05 18:13:58 +01:00
parent eb4b4d3d8e
commit bbd6e63588

View File

@@ -641,6 +641,16 @@ func (s *OrganizationService) CreateOrganization(
return fmt.Errorf("cannot insert profile: %w", err)
}
organizationContext := &coredata.OrganizationContext{
OrganizationID: organizationID,
CreatedAt: now,
UpdatedAt: now,
}
if err := organizationContext.Insert(ctx, tx, scope); err != nil {
return fmt.Errorf("cannot insert organization context: %w", err)
}
return nil
},
)