Controller and Model updates

This commit is contained in:
2026-03-21 02:30:46 +01:00
parent ace057d379
commit d8195dbf31
9 changed files with 55 additions and 28 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ var HWMemberSchema = new mongoose.Schema({
scoreGifts: Number,
warGifts: Number,
rewards: Number,
author: { type: mongoose.Schema.Types.ObjectId, ref: 'User' }
author: { type: mongoose.Schema.Types.UUID, ref: 'User' }
}, {timestamps: true, toJSON: {virtuals: true}});
HWMemberSchema.plugin(uniqueValidator, { message: 'is already taken' });