refacto(*): rename hostname to custom domain (#10100)

This commit is contained in:
Antoine Moreaux
2025-02-10 16:12:36 +01:00
committed by GitHub
parent 2a0f937899
commit f733307517
51 changed files with 285 additions and 4757 deletions

View File

@ -99,7 +99,7 @@ describe('AdminPanelService', () => {
{
provide: DomainManagerService,
useValue: {
getworkspaceUrls: jest.fn().mockReturnValue({
getWorkspaceUrls: jest.fn().mockReturnValue({
customUrl: undefined,
subdomainUrl: 'https://twenty.twenty.com',
}),

View File

@ -74,7 +74,7 @@ export class AdminPanelService {
return {
workspace: {
id: user.workspaces[0].workspace.id,
workspaceUrls: this.domainManagerService.getworkspaceUrls(
workspaceUrls: this.domainManagerService.getWorkspaceUrls(
user.workspaces[0].workspace,
),
},

View File

@ -1,13 +1,13 @@
import { Field, ObjectType } from '@nestjs/graphql';
import { AuthToken } from 'src/engine/core-modules/auth/dto/token.entity';
import { workspaceUrlsAndId } from 'src/engine/core-modules/workspace/dtos/workspace-subdomain-id.dto';
import { WorkspaceUrlsAndId } from 'src/engine/core-modules/workspace/dtos/workspace-subdomain-id.dto';
@ObjectType()
export class ImpersonateOutput {
@Field(() => AuthToken)
loginToken: AuthToken;
@Field(() => workspaceUrlsAndId)
workspace: workspaceUrlsAndId;
@Field(() => WorkspaceUrlsAndId)
workspace: WorkspaceUrlsAndId;
}