Basic app logo fixes (#20919)

as title, took the quick win fixes from
https://github.com/twentyhq/twenty/pull/20909/changes#diff-3367344412b2f44f0273d8019c1bc36396198244b9558d02921b135f62522baaR180
and leave the main fix for later as it requires an architectural update
This commit is contained in:
martmull
2026-05-27 10:21:35 +02:00
committed by GitHub
parent 34db7ac8b4
commit a051490ec9
7 changed files with 63 additions and 15 deletions
@@ -302,10 +302,11 @@ export class ApplicationDevelopmentResolver {
`${serverUrl}/public-assets/${workspaceId}/${applicationId}/${filePath}`,
);
await this.applicationRegistrationService.updateFromManifest(
await this.applicationRegistrationService.updateFromManifest({
applicationRegistrationId,
manifestWithResolvedUrls,
);
manifest: manifestWithResolvedUrls,
sourceType: ApplicationRegistrationSourceType.LOCAL,
});
if (manifest.application.serverVariables) {
await this.applicationRegistrationVariableService.syncVariableSchemas(
@@ -211,10 +211,15 @@ export class ApplicationRegistrationService {
return this.findOneById(id, ownerWorkspaceId);
}
async updateFromManifest(
applicationRegistrationId: string,
manifest: Manifest,
): Promise<void> {
async updateFromManifest({
applicationRegistrationId,
manifest,
sourceType,
}: {
applicationRegistrationId: string;
manifest: Manifest;
sourceType?: ApplicationRegistrationSourceType;
}): Promise<void> {
const existing = await this.applicationRegistrationRepository.findOneOrFail(
{ where: { id: applicationRegistrationId } },
);
@@ -223,6 +228,7 @@ export class ApplicationRegistrationService {
...existing,
name: manifest.application.displayName,
manifest,
...(sourceType !== undefined && { sourceType }),
});
}