fix: agents requests 404 error

This commit is contained in:
Mahyar Khanbolooki
2025-07-13 16:44:19 +03:30
parent 43e49f96f7
commit 2b2436676c
3 changed files with 9 additions and 3 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ FilesSchema.virtual('url').get(file)
const RepresentationSchema = mongoose.Schema({
// user info
user_id: { type: String, ref: 'User' },
user_id: { type: mongoose.Schema.Types.ObjectId, ref: 'User' },
representation_code: String,
agent_code: String,
editAccess: { type: Boolean, default: false },
@@ -64,7 +64,7 @@ const RepresentationSchema = mongoose.Schema({
// common questions
representation_type: {
type: [String],
enum: ['mobile_accessories', 'computer_accessories', 'memory_products', 'car_audio_video', 'home_products'],
enum: ['verity', 'mobile_accessories', 'computer_accessories', 'memory_products', 'car_audio_video', 'home_products'],
default: []
},
know_asanServ_from: {