Rename standard and custom apps (#19631)

as title
no migration for existing apps, changes only apply on new workspaces
This commit is contained in:
martmull
2026-04-13 15:13:59 +02:00
committed by GitHub
parent 8bf9b12ace
commit bf5cc68f25
7 changed files with 10 additions and 13 deletions
@@ -88,7 +88,7 @@ export class ApplicationService {
if (!isDefined(twentyStandardApplicationId)) {
throw new ApplicationException(
`Could not find workspace twenty standard applicationId in cache ${workspaceId}`,
`Could not find workspace Standard applicationId in cache ${workspaceId}`,
ApplicationExceptionCode.APPLICATION_NOT_FOUND,
);
}
@@ -241,7 +241,7 @@ export class ApplicationService {
if (!isDefined(application)) {
throw new ApplicationException(
`Twenty standard application not found for workspace ${workspace.id}`,
`Standard application not found for workspace ${workspace.id}`,
ApplicationExceptionCode.APPLICATION_NOT_FOUND,
);
}
@@ -294,11 +294,9 @@ export class ApplicationService {
{
workspaceId,
applicationId,
workspaceDisplayName,
}: {
workspaceId: string;
applicationId: string;
workspaceDisplayName?: string;
},
queryRunner?: QueryRunner,
) {
@@ -307,9 +305,9 @@ export class ApplicationService {
const workspaceCustomApplication = await this.create(
{
description: 'Workspace custom application',
name: `${isDefined(workspaceDisplayName) ? workspaceDisplayName : 'Workspace'}'s custom application`,
name: 'Custom',
sourcePath: 'workspace-custom',
version: '1.0.0',
version: '1.0.1',
universalIdentifier: applicationId,
workspaceId,
id: applicationId,