runForever

This commit is contained in:
Manuel Romero
2021-12-20 14:04:14 +01:00
parent 721b478d00
commit f2aa774acd
4 changed files with 7 additions and 1 deletions

View File

@@ -61,6 +61,7 @@ async function init(type) {
var filter = {
"isDestroyed":false,
"isDeleted": false,
"$or": [ {"runForever":{ "$exists": false }}, {"runForever": false}],
"statusVms": "Stopped",
"vmImage": {"$exists": true},
"vmImage.vm1": { "$exists": true }

View File

@@ -61,6 +61,7 @@ async function init(type) {
var filter = {
"isDestroyed": false,
"isDeleted": false,
"$or": [ {"runForever":{ "$exists": false }}, {"runForever": false}],
"statusVms": "Running",
"vmImage": { "$exists": true },
"vmImage.vm1": { "$exists": true }

View File

@@ -1,6 +1,6 @@
{
"name": "qmi-cloud-cli",
"version": "1.3.0",
"version": "1.3.1",
"scripts": {
},
"private": true,

View File

@@ -106,6 +106,10 @@ const provisionSchema = new mongoose.Schema({
parent: {
type: mongoose.Types.ObjectId,
ref: 'Provision'
},
runForever: {
type: Boolean,
default: false
}
},{
toObject: {virtuals:true},