1
0
Fork 0
mirror of synced 2024-10-06 04:54:52 +13:00

moving node fetch import into module

This commit is contained in:
Martin McKeaveney 2022-04-25 00:05:32 +01:00
parent 4091642c67
commit 31412cb83b

View file

@ -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