Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
RDIL committed Aug 8, 2024
2 parents 4661061 + e4c36e7 commit fbb0968
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: "CodeQL"

on:
push:
branches: [ "v6", v* ]
branches: [ "v6", v*, "master" ]
pull_request:
branches: [ "v6", v* ]
branches: [ "v6", v*, "master" ]

jobs:
analyze:
Expand Down
1 change: 1 addition & 0 deletions components/databaseHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ export async function cheapLoadUserData(
await loadUserData(userId, gameVersion)
} catch (e) {
log(LogLevel.DEBUG, "Unable to load profile information.")
log(LogLevel.DEBUG, e)
}
}

Expand Down
1 change: 1 addition & 0 deletions components/oauthToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ export async function handleOAuthToken(
await loadUserData(req.body.pId, gameVersion)
} catch (e) {
log(LogLevel.DEBUG, "Unable to load profile information.")
log(LogLevel.DEBUG, e)
}

/*
Expand Down
13 changes: 8 additions & 5 deletions components/webFeatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -498,11 +498,14 @@ webFeaturesRouter.post(
userdata.Extensions.gamepersistentdata =
exts.data.Extensions.gamepersistentdata || {}

userdata.Extensions.gamepersistentdata.HitsFilterType ??= {
MyHistory: "all",
MyContracts: "all",
MyPlaylist: "all",
}
// @ts-expect-error It's fine
userdata.Extensions.gamepersistentdata.HitsFilterType ??= {}
userdata.Extensions.gamepersistentdata.HitsFilterType.MyHistory ??=
"all"
userdata.Extensions.gamepersistentdata.HitsFilterType.MyContracts ??=
"all"
userdata.Extensions.gamepersistentdata.HitsFilterType.MyPlaylist ??=
"all"

const sublocations = getSublocations(req.query.gv)
userdata.Extensions.defaultloadout ??= {}
Expand Down

0 comments on commit fbb0968

Please sign in to comment.