Skip to content

Commit ccd2fd7

Browse files
committed
fix: remove remote context fields from the events payload
1 parent 88b382d commit ccd2fd7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

App/EvolvClient.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,11 @@ public function confirm()
215215
$this->context->update(['experiments' => ['confirmations' => $newConfirmations]]);
216216

217217
foreach ($confirmableAllocations as $alloc) {
218-
$this->eventBeacon->emit('confirmation', array_merge([
218+
$this->eventBeacon->emit('confirmation', [
219219
'uid' => $alloc['uid'],
220220
'eid' => $alloc['eid'],
221221
'cid' => $alloc['cid']
222-
], $this->context->remoteContext));
222+
]);
223223
};
224224

225225
$this->eventBeacon->flush();
@@ -271,12 +271,12 @@ public function contaminate($details, bool $allExperiments = false)
271271
$this->context->update(['experiments' => ['contaminations' => $newContaminations]]);
272272

273273
foreach ($contaminatableAllocations as $alloc) {
274-
$this->eventBeacon->emit('contamination', array_merge([
274+
$this->eventBeacon->emit('contamination', [
275275
'uid' => $alloc['uid'],
276276
'eid' => $alloc['eid'],
277277
'cid' => $alloc['cid'],
278278
'contaminationReason' => $details
279-
], $this->context->remoteContext));
279+
]);
280280
};
281281

282282
$this->eventBeacon->flush();

0 commit comments

Comments
 (0)