diff --git a/packages/server/src/integrations/googlesheets.ts b/packages/server/src/integrations/googlesheets.ts index 0b2be54fb3..6cad048c83 100644 --- a/packages/server/src/integrations/googlesheets.ts +++ b/packages/server/src/integrations/googlesheets.ts @@ -141,6 +141,16 @@ class GoogleSheetsIntegration implements DatasourcePlus { this.client = new GoogleSpreadsheet(spreadsheetId) } + async testConnection() { + try { + await this.connect() + await this.client.loadInfo() + return true + } catch (e: any) { + return { error: e.message as string } + } + } + getBindingIdentifier() { return "" }