'finish' => true,
'progress' => 1,
'text' =>
$snippets->
get('stream_refreshed'
),
]);
return;
} $iteration =
(int) $this->
Request()->
getParam('iteration', 1
);
$offset =
($iteration - 1
) * CustomerStreamRepository::INDEXING_LIMIT;
$this->
getApiResource()->
indexStream($stream,
$offset, CustomerStreamRepository::INDEXING_LIMIT
);
$handled =
$offset + CustomerStreamRepository::INDEXING_LIMIT;
if ($handled >=
$total) { $this->
View()->
assign([ 'success' => true,
'finish' => true,
'progress' => 1,
'text' =>
$snippets->
get('stream_refreshed'
),
]);