Merge pull request #13890 from ToolJet/fix/tjdb-clone

Fixed app clone losing tjdb table reference
This commit is contained in:
Johnson Cherian 2025-08-22 13:13:53 +05:30 committed by GitHub
commit 43e238cad7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View file

@ -1 +1 @@
3.16.15-lts
3.16.16-lts

View file

@ -1 +1 @@
3.16.15-lts
3.16.16-lts

View file

@ -1 +1 @@
3.16.15-lts
3.16.16-lts

View file

@ -15,7 +15,7 @@ export class InternalTableRepository extends Repository<InternalTable> {
.getRepository('data_queries')
.createQueryBuilder('data_queries')
.innerJoin('data_sources', 'data_sources', 'data_queries.data_source_id = data_sources.id')
.innerJoin('app_versions', 'app_versions', 'app_versions.id = data_sources.app_version_id')
.innerJoin('app_versions', 'app_versions', 'app_versions.id = data_queries.app_version_id')
.where('app_versions.app_id = :appId', { appId })
.andWhere('data_sources.kind = :kind', { kind: 'tooljetdb' })
.getMany();