diff --git a/connector-definition/template/functions.ts b/connector-definition/template/functions.ts index 91e6681..2645ed0 100644 --- a/connector-definition/template/functions.ts +++ b/connector-definition/template/functions.ts @@ -18,6 +18,7 @@ const calendarLoaderState = { const calendarSyncManager = await GoogleCalendar.syncManager.create(calendarLoaderState, 1); await calendarSyncManager.initialize(); } catch (error) { + calendarLoaderState.state = `Stopped`; console.error(error); } })(); diff --git a/ndc-duckduckapi/package.json b/ndc-duckduckapi/package.json index ee9b011..f980fbf 100644 --- a/ndc-duckduckapi/package.json +++ b/ndc-duckduckapi/package.json @@ -1,6 +1,6 @@ { "name": "@hasura/ndc-duckduckapi", - "version": "0.1.5", + "version": "0.2.1", "description": "SDK for the Hasura DDN DuckDuckAPI connector. Easily build a data API from any existing API by ETLing data into DuckDB.", "author": "Hasura", "license": "Apache-2.0", diff --git a/ndc-duckduckapi/src/services/google-calendar.ts b/ndc-duckduckapi/src/services/google-calendar.ts index 67428f8..94c8bf8 100644 --- a/ndc-duckduckapi/src/services/google-calendar.ts +++ b/ndc-duckduckapi/src/services/google-calendar.ts @@ -186,7 +186,6 @@ export class SyncManager { client_id: this.credentials.client_id, client_secret: this.credentials.client_secret, } - console.log('GoogleCalendarLoader.Auth:: ' + 'Saving new set of credentials' + JSON.stringify(credentials)); if (credentials.refresh_token && credentials.expires_in && credentials.client_id && credentials.client_secret) { await asyncDBRun('BEGIN TRANSACTION;'); await asyncDBRun('DELETE FROM calendar_oauth2_client;');