Browse Source

moving node fetch import into module

master
Martin McKeaveney 4 years ago
parent
commit
877dfb0e5d
  1. 2
      packages/server/src/integrations/googlesheets.ts

2
packages/server/src/integrations/googlesheets.ts

@ -10,13 +10,13 @@ import { Table, TableSchema } from "../definitions/common"
import { buildExternalTableId } from "./utils"
import { DataSourceOperation, FieldTypes } from "../constants"
import { GoogleSpreadsheet } from "google-spreadsheet"
import fetch from "node-fetch"
import env from "../environment"
module GoogleSheetsModule {
const { getGlobalDB } = require("@budibase/backend-core/tenancy")
const { getScopedConfig } = require("@budibase/backend-core/db")
const { Configs } = require("@budibase/backend-core/constants")
const fetch = require("node-fetch")
interface GoogleSheetsConfig {
spreadsheetId: string

Loading…
Cancel
Save