Skip to content

Commit

Permalink
fix(exporter): coach names
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueSCar committed Feb 10, 2025
1 parent dddfc76 commit 2723360
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ export function flattenData(key: string | undefined, data: any) {
case '/coaches':
for (const coach of data) {
flattened.push(...coach.seasons.map((s: DataObject) => {
s.first_name = coach.first_name;
s.last_name = coach.last_name;
s.hire_date = coach.hire_date;
s.firstName = coach.firstName;
s.lastName = coach.lastName;
s.hireDate = coach.hireDate;

return s;
}));
Expand Down

0 comments on commit 2723360

Please sign in to comment.