Skip to content

Commit

Permalink
removing the name as one of Site identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
Baalmart committed Nov 6, 2024
1 parent b42b750 commit 24deed2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/device-registry/models/Site.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ const siteSchema = new Schema(
name: {
type: String,
trim: true,
unique: true,
required: [true, "name is required!"],
},
visibility: {
Expand Down
5 changes: 0 additions & 5 deletions src/device-registry/utils/generate-filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -1064,7 +1064,6 @@ const generateFilter = {
category,
site_category,
path,
name,
site_codes,
_id,
network,
Expand All @@ -1076,10 +1075,6 @@ const generateFilter = {
last_active_after,
} = { ...req.query, ...req.params, ...req.body };
const filter = {};
logText("we are generating the filter man!");
if (name) {
filter["name"] = name;
}

if (county) {
filter["county"] = county;
Expand Down

0 comments on commit 24deed2

Please sign in to comment.