mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 01:18:23 +00:00
Merge pull request #10080 from ToolJet/hotfix/import-resource
Hotfix: Import resource with ToolJet Database disabled
This commit is contained in:
commit
0635fc95dd
4 changed files with 5 additions and 5 deletions
2
.version
2
.version
|
|
@ -1 +1 @@
|
|||
2.61.2
|
||||
2.61.3
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
2.61.2
|
||||
2.61.3
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
2.61.2
|
||||
2.61.3
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue