Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix null value parsing in Firestore node #1749

Merged
merged 1 commit into from
May 8, 2021
Merged

Conversation

ivov
Copy link
Contributor

@ivov ivov commented May 6, 2021

This PR fixes #1747.

@@ -112,9 +112,9 @@ export function documentToJson(fields: IDataObject): IDataObject {
for (const f of Object.keys(fields)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The documentToJson function doesn't handle a document with no fields.

if (isDocumentType) {
const item = ['stringValue', 'booleanValue', 'doubleValue', 'integerValue', 'timestampValue']
const item = ['stringValue', 'booleanValue', 'doubleValue', 'integerValue', 'timestampValue', 'nullValue']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the geopoint value type isn't well handled, it is parsed but the lat & long values are missing
image

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for making us aware of this. Merged for now to at least get the null problem fixed asap and open a new issue in Jira for the remaining problems.

@janober janober merged commit 90d6924 into master May 8, 2021
@janober janober deleted the fix-firestore-null-value branch May 8, 2021 02:59
@janober
Copy link
Member

janober commented May 9, 2021

Got released with n8n@0.119.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Firestore fails to get document with null values
3 participants