Skip to content

Commit

Permalink
fix action service deleteSources json payload
Browse files Browse the repository at this point in the history
Signed-off-by: Anupam Kumar <kyteinsky@gmail.com>
  • Loading branch information
kyteinsky committed Dec 9, 2024
1 parent 6a5ba61 commit 0147d11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Service/ActionService.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function deleteSources(string ...$sourceIds): void {
$batches = array_chunk($sourceIds, self::BATCH_SIZE);

foreach ($batches as $batch) {
$payload = json_encode($batch);
$payload = json_encode(['sourceIds' => $batch]);
if ($payload === false) {
$this->logger->warning('Failed to json_encode sourceIds for deletion', ['sourceIds' => $batch]);
continue;
Expand Down

0 comments on commit 0147d11

Please sign in to comment.