mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
fixes: importing app bug - query running issue when importing apps
This commit is contained in:
parent
9c73b44002
commit
6bd938c4a7
2 changed files with 10 additions and 15 deletions
|
|
@ -201,26 +201,22 @@ export class AppImportExportService {
|
|||
throw new BadRequestException('Invalid params for app import');
|
||||
}
|
||||
|
||||
let importedApp: App;
|
||||
|
||||
const schemaUnifiedAppParams = appParams?.schemaDetails?.multiPages
|
||||
? appParams
|
||||
: convertSinglePageSchemaToMultiPageSchema(appParams);
|
||||
|
||||
const isNormalizedAppDefinitionSchema = appParams?.schemaDetails?.normalizedAppDefinitionSchema;
|
||||
|
||||
await dbTransactionWrap(async (manager) => {
|
||||
importedApp = await this.createImportedAppForUser(manager, schemaUnifiedAppParams, user);
|
||||
await this.setupImportedAppAssociations(
|
||||
manager,
|
||||
importedApp,
|
||||
schemaUnifiedAppParams,
|
||||
user,
|
||||
externalResourceMappings,
|
||||
isNormalizedAppDefinitionSchema
|
||||
);
|
||||
await this.createAdminGroupPermissions(manager, importedApp);
|
||||
});
|
||||
const importedApp = await this.createImportedAppForUser(this.entityManager, schemaUnifiedAppParams, user);
|
||||
await this.setupImportedAppAssociations(
|
||||
this.entityManager,
|
||||
importedApp,
|
||||
schemaUnifiedAppParams,
|
||||
user,
|
||||
externalResourceMappings,
|
||||
isNormalizedAppDefinitionSchema
|
||||
);
|
||||
await this.createAdminGroupPermissions(this.entityManager, importedApp);
|
||||
|
||||
// NOTE: App slug updation callback doesn't work while wrapped in transaction
|
||||
// hence updating slug explicitly
|
||||
|
|
|
|||
|
|
@ -710,7 +710,6 @@ export class AppsService {
|
|||
}
|
||||
}
|
||||
}
|
||||
console.log('---------arpit:: motherIndea', { oldDataQueryToNewMapping });
|
||||
|
||||
return oldDataQueryToNewMapping;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue