/checkupdates: Show Button, when Upgrade Version is available ! (check from the server, the version number

This commit is contained in:
Paolo Arena
2019-02-22 10:23:39 +01:00
parent c7f13d820d
commit d78de1a25c
9 changed files with 133 additions and 4 deletions

View File

@@ -0,0 +1,28 @@
const mongoose = require('mongoose');
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,
required: true,
trim: true,
minlength: 1,
unique: true,
},
valore: {
type: String,
},
});
mongoose.model('cfgserver', cfgserverSchema);