1
0
Fork 0
mirror of synced 2024-07-13 18:26:06 +12:00

Fix fetching tables

This commit is contained in:
Adria Navarro 2023-06-06 12:27:49 +01:00
parent 77bd236557
commit 5135ac36b7

View file

@ -150,7 +150,6 @@ class GoogleSheetsIntegration implements DatasourcePlus {
async testConnection(): Promise<ConnectionInfo> {
try {
await setupCreationAuth(this.config)
await this.connect()
return { connected: true }
} catch (e: any) {
@ -211,6 +210,8 @@ class GoogleSheetsIntegration implements DatasourcePlus {
async connect() {
try {
await setupCreationAuth(this.config)
// Initialise oAuth client
let googleConfig = await configs.getGoogleDatasourceConfig()
if (!googleConfig) {