refactor: call catalog.insert while looping during catalog.insert_many

This commit is contained in:
2025-10-04 06:44:26 +02:00
parent 21aaff25f4
commit 5a9b1a97ab

View File

@@ -48,9 +48,7 @@ impl O {
/// * `objects` - A vector of objects to insert.
pub fn insert_many(&mut self, objects: Vec<impl EAV>) {
for object in objects {
let mut entity = object.into();
entity.state = EntityState::New;
self.items.insert(entity.id.clone(), entity);
self.insert(object);
}
}