Skip to content

Commit e03c507

Browse files
chore: remove visitor_id check in search events
1 parent e0c2c6f commit e03c507

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

run_checks.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,6 @@
9090

9191
/** @var SearchEventsResponse $result */
9292
list($result, $response) = $client->searchEvents(10, null, null, null, null, $start->getTimestamp() * 1000, $end->getTimestamp() * 1000);
93-
if (is_countable($result->getEvents()) && count($result->getEvents()) > 0 && $result->getEvents()[0]->getProducts()->getIdentification()->getData()->getVisitorId() !== $visitor_id) {
94-
throw new Exception('Argument visitorId is not equal to deserialized getVisitorId');
95-
}
9693
fwrite(STDOUT, sprintf("\n\nGot events: %s \n", $response->getBody()->getContents()));
9794
} catch (Exception $e) {
9895
fwrite(STDERR, sprintf("\n\nException when calling FingerprintApi->searchEvents: %s\n", $e->getMessage()));

0 commit comments

Comments
 (0)