Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include current team name in team.js response map #228

Closed
wants to merge 2 commits into from

Conversation

CarolinaGuy89
Copy link
Contributor

fixes #227 by adding:

teamName: 'name',

raw data using URL provided in #227 with different league ID now appears as such:
In the following data, initial team name at season start was Team Cruise, however the user changed their team name later to Backyard Brews.
Current Team name is desired per issue.

....
"teams": [
{
"abbrev": "Brew",
"currentProjectedRank": 5,
"divisionId": 0,
"draftDayProjectedRank": 1,
"draftStrategy": {},
"id": 1,
"isActive": false,
"location": "Team",
"logo": "https://g.espncdn.com/lm-static/logo-packs/ffl/AtTheStadium-RobbHarskamp/At_The_Stadium_16.svg",
"logoType": "VECTOR",
"name": "Backyard Brews",
"nickname": "Cruise",
....

verified by directly modifying node-dev.js in local project

added response mapping for returning the current team's name.
change from currentName to teamName
@mkreiser
Copy link
Owner

Fixed in #229

@mkreiser mkreiser closed this Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Team information has last season's names
2 participants