Skip to content

Commit 3474e99

Browse files
authored
Merge pull request #26 from Invertus/BRD-145/endpoint-sending
BRD-145: Syncbulk added
2 parents 26e8cb6 + 3def4cb commit 3474e99

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/SynchronizationApiSdk.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,10 @@ private function sendBatch(string $index, array $products): void
155155
'embeddablefields' => $this->buildEmbeddableFields(),
156156
];
157157

158+
if (!empty($this->endpoint)) {
159+
$data['endpoint'] = $this->endpoint;
160+
}
161+
158162
$this->httpClient->post('api/v1/sync/', $data);
159163
}
160164

0 commit comments

Comments
 (0)