Further transition from HTTP to HTTPS (#14039)

This commit is contained in:
sau226
2022-06-11 05:02:58 +10:00
committed by GitHub
parent 4da6467486
commit 4d10c53216
19 changed files with 30 additions and 30 deletions

View File

@@ -11,7 +11,7 @@ function equipmentStatBonusComputed (stat, user) {
// toObject is required here due to lodash values not working well with mongoose doc objects.
// if toObject doesn't exist, we can assume the object is already plain JSON
// see http://stackoverflow.com/questions/25767334/underscore-js-keys-and-omit-not-working-as-expected
// see https://stackoverflow.com/questions/25767334/underscore-js-keys-and-omit-not-working-as-expected
const { equipped } = user.items.gear;
const equippedKeys = values(!equipped.toObject ? equipped : equipped.toObject());