Skip to content

Commit

Permalink
Updates (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
petrvecera authored Nov 1, 2023
1 parent fadce28 commit 02701c7
Show file tree
Hide file tree
Showing 3 changed files with 352 additions and 343 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,19 @@
"@nivo/heatmap": "0.83.0",
"@nivo/line": "0.83.0",
"@nivo/pie": "0.83.0",
"@sentry/nextjs": "7.75.1",
"@tabler/icons-react": "2.39.0",
"chart.js": "4.2.1",
"@sentry/nextjs": "7.77.0",
"@tabler/icons-react": "2.40.0",
"chart.js": "4.4.0",
"dayjs": "1.11.10",
"firebase": "10.4.0",
"firebase": "10.5.2",
"is-glob": "4.0.3",
"jsesc": "3.0.2",
"json-2-csv": "3.19.0",
"json-2-csv": "5.0.1",
"lodash": "4.17.21",
"mantine-datatable": "6.0.0",
"next": "13.1.6",
"nprogress": "0.2.0",
"octokit": "2.0.14",
"octokit": "3.1.1",
"react": "18.2.0",
"react-chartjs-2": "5.2.0",
"react-dom": "18.2.0",
Expand Down
4 changes: 2 additions & 2 deletions pages/api/playerExport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { logger } from "../../src/logger";
import { getPlayerCardInfo } from "../../src/coh3stats-api";
import { processPlayerInfoAPIResponse } from "../../src/players/standings";
import { PlayerCardDataType } from "../../src/coh3/coh3-types";
import { json2csvAsync } from "json-2-csv";
import { json2csv } from "json-2-csv";
import { NextApiRequest, NextApiResponse } from "next";
import { generateCSVObject } from "../../src/players/export";
import { chunk } from "lodash";
Expand Down Expand Up @@ -69,7 +69,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
.status(200)
.setHeader("Cache-Control", "public, max-age=60")
.setHeader("content-type", "text/csv")
.send(await json2csvAsync(finalArray, {}));
.send(json2csv(finalArray, {}));
} catch (e) {
logger.error(e);
res.status(500).json({ error: "error processing the request" });
Expand Down
Loading

0 comments on commit 02701c7

Please sign in to comment.