mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
find to findOne
This commit is contained in:
parent
382b14ea27
commit
2bf13a50c4
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue