{"size": 280, "ext": "js", "max_stars_repo_path": "Domain/UseCases/ManageAddress/DeleteAddress/DeleteAddress.js", "max_stars_repo_name": "Joaoh3326/domain-driven-design-in-nodejs", "max_stars_repo_stars_event_min_datetime": "2019-04-27T17:24:53.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-29T23:02:37.000Z", "max_issues_repo_path": "03-advanced/Domain/UseCases/ManageAddress/DeleteAddress/DeleteAddress.js", "max_issues_repo_name": "danielbdias/rest-api-with-db-in-nodejs", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "03-advanced/Domain/UseCases/ManageAddress/DeleteAddress/DeleteAddress.js", "max_forks_repo_name": "danielbdias/rest-api-with-db-in-nodejs", "max_forks_repo_forks_event_min_datetime": "2019-04-27T18:57:53.000Z", "max_forks_repo_forks_event_max_datetime": "2021-12-25T22:00:26.000Z"}
{"max_stars_count": 21, "max_issues_count": null, "max_forks_count": 11, "avg_line_length": 28.0, "max_line_length": 85, "alphanum_fraction": 0.6964285714}
const AddressRepository = require('../../../../Infra/repositories/AddressRepository')
const Address = require('../../../Entities/Address')

module.exports = function DeleteAddress ({ id }) {
  const entity = new Address({ id })

  AddressRepository.delete(entity)
  return true
}
