Open jjsimps opened 1 month ago
Hey ya'll would be great to have some eyes on this :) Thank you!
I'm not sure what the value of this null
element is, what should the user do with it? TBH it feels more like a bug in RediSearch...
Duplicate of #2814
@leibale Cool thanks. Should I close this MR then? Is there anything preventing a merge of the other one?
Description
Recently, I updated to the latest version of RediSearch (2.10.7). I started getting a particular error that originates from within the redisearch library:
This error seems to have originated from this change. Instead of returning an empty array
[]
,None
is returned. The library does not handle this case, and so the error is thrown.This PR checks if the document is NULL, and if it is, return the object. This would give the same behavior as before.
I encountered this in the latest redis version (4.7). Not sure which branch I should be comitting to.
Checklist
npm test
pass with this change (including linting)?