Browse Source

find to findOne

IgnatzHome 7 years ago
parent
commit
2bf13a50c4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      client/lib/filter.js

+ 1 - 1
client/lib/filter.js

@@ -148,7 +148,7 @@ class AdvancedFilter {
   _fieldNameToId(field)
   {
     console.log("searching: "+field);
-    const found = CustomFields.find({'name':field});
+    const found = CustomFields.findOne({'name':field});
     console.log(found);
     return found._id;
   }