{"size": 266, "ext": "js", "max_stars_repo_path": "ts/usecases/item/read-item.js", "max_stars_repo_name": "kartoffelsoft/luzie-locke-backend", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "ts/usecases/item/read-item.js", "max_issues_repo_name": "kartoffelsoft/luzie-locke-backend", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "ts/usecases/item/read-item.js", "max_forks_repo_name": "kartoffelsoft/luzie-locke-backend", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.1818181818, "max_line_length": 60, "alphanum_fraction": 0.6278195489}
module.exports = function makeReadItem ({ itemsDatabase }) {
  return async function readItem ({ id } = {}) {
    if (!id) {
      throw new Error('Missing mandatory parameters: id')
    }

    const item = await itemsDatabase.findById({ id })
    return item
  }
}
