This PR fixes a MongoDB error if the sink received no data from the
transform function. This usually happens once the indexer reaches
the tip of the chain.
Testing strategy
Run an indexer and wait until it reaches an accepted or pending block.
Before this PR, the indexer prints an error. After this PR the indexer works
as expected.
Summary
This PR fixes a MongoDB error if the sink received no data from the transform function. This usually happens once the indexer reaches the tip of the chain.
Testing strategy