Skip to content

Commit

Permalink
fix(Google Sheets Node): Fix insertOrUpdate cell update with object
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-radency authored Mar 27, 2023
1 parent 18efaf3 commit 0625e2e
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -536,9 +536,15 @@ export class GoogleSheet {
columnNames.indexOf(name),
);

let updateValue = item[name] as string;
if (typeof updateValue === 'object') {
try {
updateValue = JSON.stringify(updateValue);
} catch (error) {}
}
updateData.push({
range: `${decodedRange.name}!${columnToUpdate}${updateRowIndex}`,
values: [[item[name] as string]],
values: [[updateValue]],
});
}
}
Expand Down

0 comments on commit 0625e2e

Please sign in to comment.