Browse Source

Merge pull request #7647 from Budibase/bug/googlesheets-update-master

Google Sheets Update: Parse incoming row as JSON
pull/7658/head
melohagan 4 years ago
committed by GitHub
parent
commit
09e126bae9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      packages/server/src/integrations/googlesheets.ts

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

@ -379,7 +379,8 @@ module GoogleSheetsModule {
const rows = await sheet.getRows()
const row = rows[query.rowIndex]
if (row) {
const updateValues = query.row
const updateValues =
typeof query.row === "string" ? JSON.parse(query.row) : query.row
for (let key in updateValues) {
row[key] = updateValues[key]
}

Loading…
Cancel
Save