mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 08:58:26 +00:00
Merge pull request #12709 from ToolJet/fix/query-duplicate-failure
Fix: Add datasourceId to static queries in GET requests
This commit is contained in:
commit
432066b4f6
1 changed files with 1 additions and 4 deletions
|
|
@ -22,7 +22,7 @@ export class DataQueriesService implements IDataQueriesService {
|
|||
protected readonly dataQueryRepository: DataQueryRepository,
|
||||
protected readonly dataQueryUtilService: DataQueriesUtilService,
|
||||
protected readonly dataSourceRepository: DataSourcesRepository
|
||||
) {}
|
||||
) { }
|
||||
|
||||
async getAll(versionId: string) {
|
||||
const queries = await this.dataQueryRepository.getAll(versionId);
|
||||
|
|
@ -30,9 +30,6 @@ export class DataQueriesService implements IDataQueriesService {
|
|||
|
||||
// serialize
|
||||
for (const query of queries) {
|
||||
if (query.dataSource.type === DataSourceTypes.STATIC) {
|
||||
delete query['dataSourceId'];
|
||||
}
|
||||
delete query['dataSource'];
|
||||
|
||||
const decamelizeQuery = decamelizeKeys(query);
|
||||
|
|
|
|||
Loading…
Reference in a new issue