Skip to content

Commit

Permalink
Merge pull request #9402 from ToolJet/release/platformv14.8
Browse files Browse the repository at this point in the history
Release platform v14.8 (v2.35.3)
  • Loading branch information
gsmithun4 committed Apr 17, 2024
2 parents a7c2b16 + 38eb851 commit ac6f191
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.35.2
2.35.3
2 changes: 1 addition & 1 deletion frontend/.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.35.2
2.35.3
2 changes: 1 addition & 1 deletion server/.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.35.2
2.35.3
5 changes: 3 additions & 2 deletions server/src/services/app_import_export.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,14 @@ export class AppImportExportService {
}
const appVersions = await queryAppVersions.orderBy('app_versions.created_at', 'ASC').getMany();

let dataSources =
const legacyLocalDataSources =
appVersions?.length &&
(await manager
.createQueryBuilder(DataSource, 'data_sources')
.where('data_sources.appVersionId IN(:...versionId)', {
versionId: appVersions.map((v) => v.id),
})
.andWhere('data_sources.scope != :scope', { scope: DataSourceScopes.GLOBAL })
.orderBy('data_sources.created_at', 'ASC')
.getMany());

Expand All @@ -127,7 +128,7 @@ export class AppImportExportService {

const globalDataSources = [...new Map(globalQueries.map((gq) => [gq.dataSource.id, gq.dataSource])).values()];

dataSources = [...dataSources, ...globalDataSources];
const dataSources = [...legacyLocalDataSources, ...globalDataSources];

if (dataSources?.length) {
dataQueries = await manager
Expand Down

0 comments on commit ac6f191

Please sign in to comment.