Merge pull request #15102 from Budibase/fix/env-var-usage

Enrich the datasource when not passing the datasource ID.
This commit is contained in:
Michael Drury 2024-12-02 16:27:41 +00:00 committed by GitHub
commit 2fa7d12319
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ export async function enrichQueryJson(
}) })
} }
} else { } else {
datasource = json.endpoint.datasourceId datasource = await sdk.datasources.enrich(json.endpoint.datasourceId)
} }
let tables: Record<string, Table> let tables: Record<string, Table>