Browse Source

Parse incoming row as JSON

pull/7643/head
Mel O'Hagan 4 years ago
parent
commit
c2a6aa84fe
  1. 2
      packages/server/src/integrations/googlesheets.ts

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

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

Loading…
Cancel
Save