do not app again for not normalized apps

This commit is contained in:
arpitnath 2023-10-16 19:34:22 +05:30
parent e01f2bcff9
commit 08965f462c

View file

@ -471,7 +471,8 @@ export class AppImportExportService {
appVersionId,
appResourceMappings.dataQueryMapping,
appResourceMappings.componentsMapping,
appResourceMappings.pagesMapping
appResourceMappings.pagesMapping,
isNormalizedAppDefinitionSchema
);
}
@ -1404,8 +1405,11 @@ export class AppImportExportService {
versionId: string,
oldDataQueryToNewMapping: Record<string, unknown>,
oldComponentToNewComponentMapping: Record<string, unknown>,
oldPageToNewPageMapping: Record<string, unknown>
oldPageToNewPageMapping: Record<string, unknown>,
isNormalizedAppDefinitionSchema: boolean
) {
if (!isNormalizedAppDefinitionSchema) return;
const allEvents = await manager.find(EventHandler, {
where: { appVersionId: versionId },
});