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:
gorkem-bwlandClaude committed 2025-10-12 21:51:06 -04:00
1 parent 27d37ece7d
commit 6bdf9891e8
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -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;
} },
}, },
}, },
{ {
+1 -1
View File
@@ -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();