Skip to content

Commit

Permalink
Fix index addition
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihajlo-Pavlovic committed Jan 25, 2024
1 parent 5d53b5f commit 6e56349
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/service/sharding-table-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class ShardingTableService {
filterLastSeen,
);

peers = peers.map((peer, index) => ({ ...peer, index }));
peers = peers.map((peer, index) => ({ ...peer.dataValues, index }));

const keyHash = await this.hashingService.callHashFunction(hashFunctionId, key);

Expand Down

0 comments on commit 6e56349

Please sign in to comment.