Merge pull request #10080 from ToolJet/hotfix/import-resource

Hotfix: Import resource with ToolJet Database disabled
This commit is contained in:
Akshay 2024-06-14 14:51:32 +05:30 committed by GitHub
commit 0635fc95dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 5 additions and 5 deletions

View file

@ -1 +1 @@
2.61.2
2.61.3

View file

@ -1 +1 @@
2.61.2
2.61.3

View file

@ -1 +1 @@
2.61.2
2.61.3

View file

@ -54,13 +54,13 @@ export class ImportExportResourcesService {
const imports = { app: [], tooljet_database: [] };
const importingVersion = importResourcesDto.tooljet_version;
if (importResourcesDto.tooljet_database) {
if (!isEmpty(importResourcesDto.tooljet_database)) {
const res = await this.tooljetDbImportExportService.bulkImport(importResourcesDto, importingVersion, cloning);
tableNameMapping = res.tableNameMapping;
imports.tooljet_database = res.tooljet_database;
}
if (importResourcesDto.app) {
if (!isEmpty(importResourcesDto.app)) {
for (const appImportDto of importResourcesDto.app) {
user.organizationId = importResourcesDto.organization_id;
const createdApp = await this.appImportExportService.import(