fix: agents requests 404 error
This commit is contained in:
Generated
+5
@@ -16,6 +16,7 @@
|
|||||||
"@nuxtjs/auth": "^4.9.1",
|
"@nuxtjs/auth": "^4.9.1",
|
||||||
"@nuxtjs/auth-next": "5.0.0-1667386184.dfbbb54",
|
"@nuxtjs/auth-next": "5.0.0-1667386184.dfbbb54",
|
||||||
"@nuxtjs/axios": "^5.12.2",
|
"@nuxtjs/axios": "^5.12.2",
|
||||||
|
"asan-service": "file:",
|
||||||
"bcryptjs": "^2.4.3",
|
"bcryptjs": "^2.4.3",
|
||||||
"ckeditor4-vue": "^1.2.0",
|
"ckeditor4-vue": "^1.2.0",
|
||||||
"core-js": "^3.6.5",
|
"core-js": "^3.6.5",
|
||||||
@@ -6253,6 +6254,10 @@
|
|||||||
"node": ">=8"
|
"node": ">=8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/asan-service": {
|
||||||
|
"resolved": "",
|
||||||
|
"link": true
|
||||||
|
},
|
||||||
"node_modules/asn1.js": {
|
"node_modules/asn1.js": {
|
||||||
"version": "4.10.1",
|
"version": "4.10.1",
|
||||||
"resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-4.10.1.tgz",
|
"resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-4.10.1.tgz",
|
||||||
|
|||||||
+2
-1
@@ -4,7 +4,7 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"nodemon": "nodemon --watch server --exec \"nuxt start\"",
|
"nodemon": "nodemon --watch server --exec \"nuxt start\"",
|
||||||
"server": "nodemon --watch server --exec \"SET NODE_ENV=devServer&&node ./server/index.js\"",
|
"server": "nodemon --watch server --exec \"SET NODE_ENV=development&&node ./server/index.js\"",
|
||||||
"dev": "nuxt dev",
|
"dev": "nuxt dev",
|
||||||
"start": "nuxt start",
|
"start": "nuxt start",
|
||||||
"generate": "nuxt generate",
|
"generate": "nuxt generate",
|
||||||
@@ -23,6 +23,7 @@
|
|||||||
"@nuxtjs/auth": "^4.9.1",
|
"@nuxtjs/auth": "^4.9.1",
|
||||||
"@nuxtjs/auth-next": "5.0.0-1667386184.dfbbb54",
|
"@nuxtjs/auth-next": "5.0.0-1667386184.dfbbb54",
|
||||||
"@nuxtjs/axios": "^5.12.2",
|
"@nuxtjs/axios": "^5.12.2",
|
||||||
|
"asan-service": "file:",
|
||||||
"bcryptjs": "^2.4.3",
|
"bcryptjs": "^2.4.3",
|
||||||
"ckeditor4-vue": "^1.2.0",
|
"ckeditor4-vue": "^1.2.0",
|
||||||
"core-js": "^3.6.5",
|
"core-js": "^3.6.5",
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ FilesSchema.virtual('url').get(file)
|
|||||||
|
|
||||||
const RepresentationSchema = mongoose.Schema({
|
const RepresentationSchema = mongoose.Schema({
|
||||||
// user info
|
// user info
|
||||||
user_id: { type: String, ref: 'User' },
|
user_id: { type: mongoose.Schema.Types.ObjectId, ref: 'User' },
|
||||||
representation_code: String,
|
representation_code: String,
|
||||||
agent_code: String,
|
agent_code: String,
|
||||||
editAccess: { type: Boolean, default: false },
|
editAccess: { type: Boolean, default: false },
|
||||||
@@ -64,7 +64,7 @@ const RepresentationSchema = mongoose.Schema({
|
|||||||
// common questions
|
// common questions
|
||||||
representation_type: {
|
representation_type: {
|
||||||
type: [String],
|
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: []
|
default: []
|
||||||
},
|
},
|
||||||
know_asanServ_from: {
|
know_asanServ_from: {
|
||||||
|
|||||||
Reference in New Issue
Block a user