Add logic for generating weekly matchups via patch

This commit is contained in:
2020-11-07 13:02:37 -06:00
parent 5cc3d31415
commit feadc6201d
3 changed files with 128 additions and 2 deletions

View File

@@ -11,12 +11,12 @@ class SportsDataService extends Service {
async is_draft_stage() {
const Setting = this.models.get('models::setting')
return !!this.utility.infer(await Setting.get('in_draft_stage'))
return this.utility.infer(await Setting.get('in_draft_stage'))
}
async current_play_week() {
const Setting = this.models.get('models::setting')
return !!this.utility.infer(await Setting.get('current_week'))
return this.utility.infer(await Setting.get('current_week'))
}
async get_team_players(team_key) {