mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Further transition from HTTP to HTTPS (#14039)
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user