Files
freeplanet_serverside/src/server/models/cfgserver.js
Paolo Arena 396bfea289 Disabled debug Mongoose
Updated modules
fixed tests
2021-09-22 01:13:41 +02:00

32 lines
566 B
JavaScript
Executable File

const mongoose = require('mongoose').set('debug', false)
const Schema = mongoose.Schema;
mongoose.Promise = global.Promise;
mongoose.level = "F";
const { ObjectID } = require('mongodb');
// Resolving error Unknown modifier: $pushAll
mongoose.plugin(schema => {
schema.options.usePushEach = true
});
const cfgserverSchema = new Schema({
chiave: {
type: String,
trim: true,
minlength: 1,
},
idapp: {
type: String,
},
userId: {
type: String,
},
valore: {
type: String,
},
});
mongoose.model('cfgserver', cfgserverSchema);