Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Use separate method for preparing audit data #17

Open
dylankb opened this issue Mar 27, 2018 · 0 comments
Open

Use separate method for preparing audit data #17

dylankb opened this issue Mar 27, 2018 · 0 comments

Comments

@dylankb
Copy link
Member

dylankb commented Mar 27, 2018

Using something like the method below will clean up auditFile

prepareAuditData(shards, shaIds) {
    return shaIds.reduce((acc, shaId) => {
      acc[shaId] = {};

      shards[shaId].forEach((shardId) => {
        acc[shaId][shardId] = false;
      });

      return acc;
    }, {});
  }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant