fix: agents requests 404 error
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user