mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 21:07:28 -08:00
🐛 Fix null value parsing in Google FIrestore (#1749)
This commit is contained in:
parent
cdbb3acd2d
commit
90d69246d9
|
@ -112,9 +112,9 @@ export function documentToJson(fields: IDataObject): IDataObject {
|
|||
for (const f of Object.keys(fields)) {
|
||||
const key = f, value = fields[f],
|
||||
isDocumentType = ['stringValue', 'booleanValue', 'doubleValue',
|
||||
'integerValue', 'timestampValue', 'mapValue', 'arrayValue'].find(t => t === key);
|
||||
'integerValue', 'timestampValue', 'mapValue', 'arrayValue', 'nullValue'].find(t => t === key);
|
||||
if (isDocumentType) {
|
||||
const item = ['stringValue', 'booleanValue', 'doubleValue', 'integerValue', 'timestampValue']
|
||||
const item = ['stringValue', 'booleanValue', 'doubleValue', 'integerValue', 'timestampValue', 'nullValue']
|
||||
.find(t => t === key);
|
||||
if (item) {
|
||||
return value as IDataObject;
|
||||
|
|
Loading…
Reference in a new issue