show all systems

This commit is contained in:
Luke Berndt
2023-01-30 22:15:12 -05:00
parent 2183e44dfd
commit 4b4d21df23
3 changed files with 6 additions and 5 deletions

View File

@@ -33,7 +33,6 @@ exports.get_systems = function (req, res) {
lastActive: results[result].lastActive,
callAvg: results[result].callAvg,
description: results[result].description,
planType: results[result].planType,
clientCount: clientCount
}
if (results[result].showScreenName && results[result].userId) {

View File

@@ -16,6 +16,7 @@ var systemSchema = mongoose.Schema({
callCount: Number,
ignoreUnknownTalkgroup : Boolean,
active: {type: Boolean, default: false},
lastActive: Date,
planType: {type: Number, default: 0},
userId: {type: mongoose.Schema.Types.ObjectId, ref: 'User'},
key: String