Closed jeremylynch closed 2 weeks ago
There is a serious bug which occurs when you pass nil to delete_document which causes the entire index to be cleared.
nil
delete_document
Book.index.delete_document(nil)
Instead, I think it would be safer to return an error when nil is passed to avoid this catastrophic outcome.
Thank you for the the report @jeremylynch
Any PR are welcome (from anyone)
There is a serious bug which occurs when you pass
nil
todelete_document
which causes the entire index to be cleared.Instead, I think it would be safer to return an error when nil is passed to avoid this catastrophic outcome.