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
+1 -1
View File
@@ -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')) {
+2 -2
View File
@@ -68,7 +68,7 @@ export default new Schema({
},
// We want to know *every* time an object updates.
// Mongoose uses __v to designate when an object contains arrays which
// have been updated (http://goo.gl/gQLz41), but we want *every* update
// have been updated, but we want *every* update
_v: { $type: Number, default: 0 },
migration: String,
achievements: {
@@ -441,7 +441,7 @@ export default new Schema({
// Using an array without validation because otherwise mongoose
// treat this as a subdocument and applies _id by default
// Schema is (id, name, inviter, publicGuild)
// TODO one way to fix is http://mongoosejs.com/docs/guide.html#_id
// TODO one way to fix is https://mongoosejs.com/docs/guide.html#_id
guilds: { $type: Array, default: () => [] },
// Using a Mixed type because otherwise user.invitations.party = {}
// to reset invitation, causes validation to fail TODO