diff options
author | IgnatzHome <ignatz@maschath.de> | 2018-05-19 22:17:00 +0200 |
---|---|---|
committer | IgnatzHome <ignatz@maschath.de> | 2018-05-19 22:17:00 +0200 |
commit | 2bf13a50c4ad03b39b52257dd21e0be3d21dae8a (patch) | |
tree | ed5d19e156b3953bb6c36ac844d9dc4dee9ba315 /client | |
parent | 382b14ea275deb94c0f2f8d5564e050b034aca8b (diff) | |
download | wekan-2bf13a50c4ad03b39b52257dd21e0be3d21dae8a.tar.gz wekan-2bf13a50c4ad03b39b52257dd21e0be3d21dae8a.tar.bz2 wekan-2bf13a50c4ad03b39b52257dd21e0be3d21dae8a.zip |
find to findOne
Diffstat (limited to 'client')
-rw-r--r-- | client/lib/filter.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/lib/filter.js b/client/lib/filter.js index 970aedea..3a174af6 100644 --- a/client/lib/filter.js +++ b/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; } |