Fix tenant not found when creating new organinzation

Signed-off-by: gearnode <bryan@frimin.fr>
This commit is contained in:
gearnode
2025-03-12 14:02:18 +01:00
parent 3762d56173
commit 1f9c5aeadb

View File

@@ -178,8 +178,7 @@ func (r *mutationResolver) DeletePeople(ctx context.Context, input types.DeleteP
// CreateOrganization is the resolver for the createOrganization field.
func (r *mutationResolver) CreateOrganization(ctx context.Context, input types.CreateOrganizationInput) (*types.CreateOrganizationPayload, error) {
// TODO: fix does not work now
svc := r.GetTenantServiceIfAuthorized(ctx, gid.NewTenantID())
svc := r.proboSvc.WithTenant(gid.NewTenantID())
organization, err := svc.Organizations.Create(ctx, probo.CreateOrganizationRequest{
Name: input.Name,