MCPcopy Create free account
hub / github.com/CFBD/cfb-api / getTeams

Function getTeams

app/draft/draft.service.js:2–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1module.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`);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected