fix
This commit is contained in:
parent
30b6f6a7b3
commit
7de6d6bf7b
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
use mongod::Model;
|
use mongod::{Model, Referencable};
|
||||||
|
|
||||||
use crate::item::Item;
|
use crate::item::Item;
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ impl ItemDB {
|
||||||
.documents
|
.documents
|
||||||
.iter()
|
.iter()
|
||||||
.map(Item::new) // <-- todo : performance?
|
.map(Item::new) // <-- todo : performance?
|
||||||
.find(|x| x.name == item)
|
.find(|x| x.id() == item)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get all items
|
/// Get all items
|
||||||
|
|
Loading…
Reference in a new issue