From 4b76457217d96a7730ddd7f486a23779f14b890d Mon Sep 17 00:00:00 2001 From: Weiko Date: Thu, 30 Apr 2026 17:13:54 +0200 Subject: [PATCH] Select application excluding logo (#20159) ## Context This is a temporary fix for cross-version upgrade process, a better fix would be to expose an hasInstanceCommandBeenRun() util (and later a decorator) --- ...pace-flat-application-map-cache.service.ts | 26 ++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/packages/twenty-server/src/engine/core-modules/application/workspace-flat-application-map-cache.service.ts b/packages/twenty-server/src/engine/core-modules/application/workspace-flat-application-map-cache.service.ts index 13953d9c17..4d672bb9c7 100644 --- a/packages/twenty-server/src/engine/core-modules/application/workspace-flat-application-map-cache.service.ts +++ b/packages/twenty-server/src/engine/core-modules/application/workspace-flat-application-map-cache.service.ts @@ -1,7 +1,7 @@ import { Injectable } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; -import { Repository } from 'typeorm'; +import { type FindOptionsSelect, Repository } from 'typeorm'; import { WorkspaceCacheProvider } from 'src/engine/workspace-cache/interfaces/workspace-cache-provider.service'; @@ -27,6 +27,30 @@ export class WorkspaceFlatApplicationMapCacheService extends WorkspaceCacheProvi where: { workspaceId, }, + select: { + id: true, + universalIdentifier: true, + name: true, + description: true, + version: true, + sourceType: true, + sourcePath: true, + packageJsonChecksum: true, + packageJsonFileId: true, + yarnLockChecksum: true, + yarnLockFileId: true, + availablePackages: true, + logicFunctionLayerId: true, + defaultRoleId: true, + settingsCustomTabFrontComponentId: true, + canBeUninstalled: true, + isSdkLayerStale: true, + applicationRegistrationId: true, + workspaceId: true, + createdAt: true, + updatedAt: true, + deletedAt: true, + } as unknown as FindOptionsSelect, withDeleted: true, });