Fix TryInsert as well (#2459)
This commit is contained in:
parent
29b7aa7004
commit
72c6fc8931
@ -427,9 +427,7 @@ where
|
|||||||
M: IntoActiveModel<A>,
|
M: IntoActiveModel<A>,
|
||||||
I: IntoIterator<Item = M>,
|
I: IntoIterator<Item = M>,
|
||||||
{
|
{
|
||||||
for model in models.into_iter() {
|
self.insert_struct = self.insert_struct.add_many(models);
|
||||||
self.insert_struct = self.insert_struct.add(model);
|
|
||||||
}
|
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user