{"size": 339, "ext": "js", "max_stars_repo_path": "src/resources/words/word.service.js", "max_stars_repo_name": "jack-guzya/LearnWords", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/resources/words/word.service.js", "max_issues_repo_name": "jack-guzya/LearnWords", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/resources/words/word.service.js", "max_forks_repo_name": "jack-guzya/LearnWords", "max_forks_repo_forks_event_min_datetime": "2020-09-07T11:02:41.000Z", "max_forks_repo_forks_event_max_datetime": "2020-09-07T11:02:41.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 30.8181818182, "max_line_length": 64, "alphanum_fraction": 0.7581120944}
const wordRepo = require('./word.db.repository');

const getAll = async conditions => wordRepo.getAll(conditions);

const getQuantity = async (group, wordsPerExampleSentenceLTE) =>
  wordRepo.getQuantity(group, wordsPerExampleSentenceLTE);

const get = async wordId => wordRepo.get(wordId);

module.exports = { getAll, getQuantity, get };
