diff --git a/packages/server/src/api/controllers/datasource.ts b/packages/server/src/api/controllers/datasource.ts index 3534fc3076..283a2726d5 100644 --- a/packages/server/src/api/controllers/datasource.ts +++ b/packages/server/src/api/controllers/datasource.ts @@ -133,15 +133,9 @@ export async function verify( } const response = await connector.testConnection() - if (typeof response === "boolean") { - ctx.body = { - connected: response, - } - } else { - ctx.body = { - connected: false, - error: response.error, - } + ctx.body = { + connected: response.connected, + error: response.error, } }