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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
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] |
|
|
|
} |
|
|
|
|