Skip to content

Commit

Permalink
Use SS search rather then SQL where
Browse files Browse the repository at this point in the history
  • Loading branch information
kartikpatel95 committed Dec 2, 2021
1 parent 33ca9c2 commit ab7d8bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Service/AlgoliaIndexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ public function exportAttributesFromRelationship($item, $relationship, $attribut
*/
public function deleteItem($itemClass, $itemUUID)
{
$item = DataObject::get_one($itemClass, ['AlgoliaUUID' => $itemUUID]);
$item = DataObject::get($itemClass)->find('AlgoliaUUID', $itemUUID);

if (!$item || !$item->isInDB()) {
return false;
Expand Down

0 comments on commit ab7d8bb

Please sign in to comment.