mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 19:11:13 +00:00
🐛 Fix null value parsing in Google FIrestore (#1749)
This commit is contained in:
@@ -112,9 +112,9 @@ export function documentToJson(fields: IDataObject): IDataObject {
|
|||||||
for (const f of Object.keys(fields)) {
|
for (const f of Object.keys(fields)) {
|
||||||
const key = f, value = fields[f],
|
const key = f, value = fields[f],
|
||||||
isDocumentType = ['stringValue', 'booleanValue', 'doubleValue',
|
isDocumentType = ['stringValue', 'booleanValue', 'doubleValue',
|
||||||
'integerValue', 'timestampValue', 'mapValue', 'arrayValue'].find(t => t === key);
|
'integerValue', 'timestampValue', 'mapValue', 'arrayValue', 'nullValue'].find(t => t === key);
|
||||||
if (isDocumentType) {
|
if (isDocumentType) {
|
||||||
const item = ['stringValue', 'booleanValue', 'doubleValue', 'integerValue', 'timestampValue']
|
const item = ['stringValue', 'booleanValue', 'doubleValue', 'integerValue', 'timestampValue', 'nullValue']
|
||||||
.find(t => t === key);
|
.find(t => t === key);
|
||||||
if (item) {
|
if (item) {
|
||||||
return value as IDataObject;
|
return value as IDataObject;
|
||||||
|
|||||||
Reference in New Issue
Block a user