Skip to content

Commit 14db6c0

Browse files
committed
B2B-2658: Implement GraphQL Resolver Cache for Customer query
- added hydration skip procedure
1 parent 1238d43 commit 14db6c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/CustomerGraphQl/Model/Resolver/CacheKey/FactorProvider/ParentCustomerEntityId.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function getFactorValue(ContextInterface $context, array $parentValue): s
3636
{
3737
if (isset($parentValue['model_id'])) {
3838
return (string)$parentValue['model_id'];
39-
} else if (isset($parentValue['model']) && $parentValue['model'] instanceof CustomerInterface) {
39+
} elseif (isset($parentValue['model']) && $parentValue['model'] instanceof CustomerInterface) {
4040
return (string)$parentValue['model']->getId();
4141
}
4242
throw new \InvalidArgumentException(__CLASS__ . " factor provider requires parent value " .

0 commit comments

Comments
 (0)