Fix datasource validity checking

This commit is contained in:
Andrew Kingston 2024-12-18 15:43:05 +00:00
parent 7bd91518da
commit fd388c3d36
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ export class DatasourceStore extends BudiStore<DerivedDatasourceStore> {
integration: Integration
datasource: Datasource
}) {
if (await this.checkDatasourceValidity(integration, datasource)) {
if (!(await this.checkDatasourceValidity(integration, datasource)).valid) {
throw new Error("Unable to connect")
}