()
| 1 | module.exports = (db) => { |
| 2 | const getTeams = async () => { |
| 3 | let teams = await db.any(`SELECT * FROM draft_team ORDER BY location`); |
| 4 | |
| 5 | return teams.map(t => ({ |
| 6 | location: t.location, |
| 7 | nickname: t.mascot, |
| 8 | displayName: t.display_name, |
| 9 | logo: t.logo |
| 10 | })); |
| 11 | }; |
| 12 | |
| 13 | const getPositions = async () => { |
| 14 | let positions = await db.any(`SELECT DISTINCT name, abbreviation FROM draft_position ORDER BY name`); |
nothing calls this directly
no outgoing calls
no test coverage detected