Fix incorrect handle_by_id
This commit is contained in:
1 parent
2c1163fc3b
commit
4b17a5a4a7
1 file changed
+1
-1
@@ -307,7 +307,7 @@ impl<T: EntityData + Clone, D: DbLayer<T>> Repository<T, D> for DataRepositoryIn
|
||||
}
|
||||
|
||||
fn handle_by_id(&self, id: Id) -> EntityHandle<T> {
|
||||
EntityHandle::new(id, id.0 as usize, false)
|
||||
EntityHandle::new(id, id.0 as usize, true)
|
||||
}
|
||||
|
||||
fn create(&mut self, mut new: T) -> EntityHandle<T> {
|
||||
|
||||
Reference in new issue
Block a user