Skip to content

Commit 5152bca

Browse files
committed
SierraApi: Harvest correct fields also for a single record.
1 parent d1f8927 commit 5152bca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RecordManager/Base/Harvest/SierraApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ public function harvestSingle(callable $callback, string $id): void
278278
$apiParams = [
279279
'limit' => $this->batchSize,
280280
'offset' => $this->startPosition,
281-
'fields' => 'id,deleted,locations,fixedFields,varFields',
281+
'fields' => $this->harvestFields[$this->endpoint] ?? '',
282282
'id' => $id,
283283
];
284284
if (null !== $this->suppressedRecords) {

0 commit comments

Comments
 (0)