update config model

This commit is contained in:
SrGooglo 2023-03-14 19:53:01 +00:00
parent e0eafeaee0
commit ebac0ef3c5
2 changed files with 10 additions and 3 deletions

View File

@ -34,7 +34,7 @@
"passport-jwt": "^4.0.1", "passport-jwt": "^4.0.1",
"passport-local": "^1.0.0", "passport-local": "^1.0.0",
"path-to-regexp": "^6.2.1", "path-to-regexp": "^6.2.1",
"sharp": "0.31.1" "sharp": "^0.31.3"
}, },
"devDependencies": { "devDependencies": {
"cross-env": "^7.0.3", "cross-env": "^7.0.3",

View File

@ -2,7 +2,14 @@ export default {
name: "Config", name: "Config",
collection: "config", collection: "config",
schema: { schema: {
key: { type: String, required: true }, key: {
value: { type: Object, required: true }, type: String,
required: true
},
value: {
// type can be anything
type: Object,
required: true
},
} }
} }