{"size": 205, "ext": "js", "max_stars_repo_path": "app/holds/add-hold.js", "max_stars_repo_name": "DEFRA/ffc-pay-processing", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/holds/add-hold.js", "max_issues_repo_name": "DEFRA/ffc-pay-processing", "max_issues_repo_issues_event_min_datetime": "2022-01-13T12:09:30.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T20:00:17.000Z", "max_forks_repo_path": "app/holds/add-hold.js", "max_forks_repo_name": "DEFRA/ffc-pay-processing", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 28, "max_forks_count": null, "avg_line_length": 25.625, "max_line_length": 83, "alphanum_fraction": 0.6829268293}
const db = require('../data')

const addHold = async (frn, holdCategoryId, transaction) => {
  await db.hold.create({ frn, holdCategoryId, added: Date.now() }, { transaction })
}

module.exports = addHold
