Fix server formatting issues
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1 parent
27d37ece7d
commit
6bdf9891e8
2 files changed
+3
-3
No files matched your search
@@ -133,9 +133,9 @@ const MonitorSchema = mongoose.Schema(
|
|||||||
trim: true,
|
trim: true,
|
||||||
maxLength: 50,
|
maxLength: 50,
|
||||||
default: null,
|
default: null,
|
||||||
set: function(value) {
|
set: function (value) {
|
||||||
return value && value.trim() ? value.trim() : null;
|
return value && value.trim() ? value.trim() : null;
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -578,7 +578,7 @@ class MonitorModule {
|
|||||||
try {
|
try {
|
||||||
const groups = await this.Monitor.distinct("group", {
|
const groups = await this.Monitor.distinct("group", {
|
||||||
teamId: new this.ObjectId(teamId),
|
teamId: new this.ObjectId(teamId),
|
||||||
group: { $ne: null, $ne: "" }
|
group: { $ne: null, $ne: "" },
|
||||||
});
|
});
|
||||||
|
|
||||||
return groups.filter(Boolean).sort();
|
return groups.filter(Boolean).sort();
|
||||||
|
|||||||
Reference in new issue
Block a user