Skip to content
This repository was archived by the owner on Nov 11, 2021. It is now read-only.

Commit e3a94da

Browse files
committed
Fixed profile page not displaying errors
Fixes #323
1 parent fda0f34 commit e3a94da

File tree

8 files changed

+13633
-12700
lines changed

8 files changed

+13633
-12700
lines changed

.vscode/extensions.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"recommendations": [
33
"formulahendry.auto-close-tag",
44
"formulahendry.auto-rename-tag",
5-
"coenraads.bracket-pair-colorizer",
65
"streetsidesoftware.code-spell-checker",
76
"ms-azuretools.vscode-docker",
87
"mikestead.dotenv",
@@ -21,6 +20,7 @@
2120
"gruntfuggly.todo-tree",
2221
"geekidos.vdf",
2322
"vscode-icons-team.vscode-icons",
24-
"visualstudioexptteam.vscodeintellicode"
23+
"visualstudioexptteam.vscodeintellicode",
24+
"coenraads.bracket-pair-colorizer-2"
2525
]
2626
}

services/backend/package-lock.json

Lines changed: 5954 additions & 6420 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

services/backend/package.json

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "backend",
3-
"version": "1.9.1",
3+
"version": "1.9.2",
44
"private": true,
55
"main": "build/index.js",
66
"types": "build/index.d.ts",
@@ -38,68 +38,68 @@
3838
},
3939
"devDependencies": {
4040
"@graphql-codegen/add": "^2.0.2",
41-
"@graphql-codegen/cli": "^1.21.1",
41+
"@graphql-codegen/cli": "^1.21.4",
4242
"@graphql-codegen/time": "^2.0.2",
43-
"@graphql-codegen/typescript": "^1.21.0",
44-
"@graphql-codegen/typescript-resolvers": "^1.18.2",
45-
"@sentry/cli": "^1.63.1",
46-
"@sentry/types": "^6.2.1",
47-
"@types/chai": "^4.2.15",
48-
"@types/chai-as-promised": "^7.1.3",
43+
"@graphql-codegen/typescript": "^1.22.0",
44+
"@graphql-codegen/typescript-resolvers": "^1.19.1",
45+
"@sentry/cli": "^1.64.2",
46+
"@sentry/types": "^6.4.1",
47+
"@types/chai": "^4.2.18",
48+
"@types/chai-as-promised": "^7.1.4",
4949
"@types/cookie-parser": "^1.4.2",
50-
"@types/jsonwebtoken": "^8.5.0",
51-
"@types/mocha": "^8.2.1",
52-
"@types/node": "^14.14.31",
50+
"@types/jsonwebtoken": "^8.5.1",
51+
"@types/mocha": "^8.2.2",
52+
"@types/node": "^15.6.0",
5353
"@types/passport": "^1.0.6",
5454
"@types/passport-oauth2": "^1.4.10",
5555
"@types/passport-steam": "^1.0.1",
5656
"@types/swagger-ui-express": "^4.1.2",
57-
"@typescript-eslint/eslint-plugin": "^4.16.1",
58-
"@typescript-eslint/parser": "^4.16.1",
59-
"chai": "^4.3.3",
57+
"@typescript-eslint/eslint-plugin": "^4.24.0",
58+
"@typescript-eslint/parser": "^4.24.0",
59+
"chai": "^4.3.4",
6060
"chai-as-promised": "^7.1.1",
61-
"cpx": "^1.5.0",
62-
"eslint": "^7.21.0",
61+
"cpx": "^1.2.1",
62+
"eslint": "^7.27.0",
6363
"eslint-config-google": "^0.14.0",
6464
"gts": "^3.1.0",
6565
"nodemon": "^2.0.7",
6666
"npm-run-all": "^4.1.5",
6767
"nyc": "^15.1.0",
68-
"opn-cli": "^5.0.0",
68+
"opn-cli": "^3.1.0",
6969
"rimraf": "^3.0.2",
70-
"sync-dotenv": "^2.6.2",
71-
"ts-node": "^9.1.1",
72-
"typescript": "^4.2.3"
70+
"sync-dotenv": "^1.0.0",
71+
"ts-node": "^10.0.0",
72+
"typescript": "^4.2.4"
7373
},
7474
"dependencies": {
75-
"@sentry/node": "^6.2.1",
75+
"@sentry/node": "^6.4.1",
7676
"apollo-metrics": "^1.0.1",
77-
"apollo-server-express": "^2.21.0",
78-
"apollo-server-plugin-base": "^0.10.4",
77+
"apollo-server-express": "^2.24.1",
78+
"apollo-server-plugin-base": "^0.12.0",
7979
"body-parser": "^1.19.0",
8080
"cookie-parser": "^1.4.5",
8181
"cross-env": "^7.0.3",
82-
"dotenv": "^8.2.0",
82+
"dotenv": "^10.0.0",
8383
"dotenv-expand": "^5.1.0",
8484
"express": "^4.17.1",
8585
"graphql": "^15.5.0",
86-
"graphql-redis-subscriptions": "^2.3.1",
86+
"graphql-redis-subscriptions": "^2.4.0",
8787
"graphql-subscriptions": "^1.2.1",
88-
"graphql-tools": "^7.0.4",
89-
"inversify": "^5.0.5",
88+
"graphql-tools": "^7.0.5",
89+
"inversify": "^5.1.1",
9090
"jsonwebtoken": "^8.5.1",
9191
"kafkajs": "^1.15.0",
9292
"node-fetch": "^2.6.1",
9393
"passport": "^0.4.1",
9494
"passport-oauth2": "^1.5.0",
9595
"passport-steam": "^1.0.15",
96-
"pg": "^8.5.1",
96+
"pg": "^8.6.0",
9797
"prom-client": "^13.1.0",
9898
"reflect-metadata": "^0.1.13",
9999
"sofa-api": "^0.10.2",
100100
"swagger-ui-express": "^4.1.6",
101101
"tsconfig-paths": "^3.9.0",
102-
"typeorm": "^0.2.31",
102+
"typeorm": "^0.2.32",
103103
"winston": "^3.3.3"
104104
}
105105
}

services/backend/src/graphql/modules/user.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ export class UserModule implements GQLModule {
199199

200200
const { limit, offset } = getQueryParams(args);
201201

202-
const matchSlotRepo = await postgres.getMatchSlotRepo();
202+
const matchSlotRepo = postgres.getMatchSlotRepo();
203203
const [slots, count] = await matchSlotRepo.findAndCount({
204204
where: { user: { steamid: parent.steamid } },
205205
take: limit,

services/frontend/components/profile/mmrHistory.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export const MmrHistory: FunctionComponent<{
123123
<div>
124124
<div
125125
className="tabs"
126-
style={{ marginLeft: "-2rem", marginTop: "-2rem" }}
126+
style={{ marginLeft: "-2rem", marginTop: "-1.5rem" }}
127127
>
128128
<ul>
129129
<li

services/frontend/components/profile/recentMatches.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const RecentMatchesTable: FunctionComponent<{
3535
// --- Data fetching ---
3636
const { data, loading, error, previousData } = useProfileMatchQuery({
3737
variables: { steamid, limit, offset },
38-
errorPolicy: "all",
38+
errorPolicy: "none",
3939
});
4040

4141
const { profile } = data ?? previousData ?? {};

0 commit comments

Comments
 (0)