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:
@@ -246,7 +246,7 @@ schema.pre('save', true, function preSaveUser (next, done) {
|
||||
// use the default values defined in the user schema and not the real ones.
|
||||
//
|
||||
// To check if a field was selected Document.isDirectSelected('field') can be used.
|
||||
// more info on its usage can be found at http://mongoosejs.com/docs/api.html#document_Document-isDirectSelected
|
||||
// more info on its usage can be found at https://mongoosejs.com/docs/api.html#document_Document-isDirectSelected
|
||||
|
||||
// do not calculate achievements if items or achievements are not selected
|
||||
if (this.isDirectSelected('items') && this.isDirectSelected('achievements')) {
|
||||
|
||||
Reference in New Issue
Block a user