Skip to content

Commit 72c6fc8

Browse files
authored
Fix TryInsert as well (#2459)
1 parent 29b7aa7 commit 72c6fc8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/query/insert.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -427,9 +427,7 @@ where
427427
M: IntoActiveModel<A>,
428428
I: IntoIterator<Item = M>,
429429
{
430-
for model in models.into_iter() {
431-
self.insert_struct = self.insert_struct.add(model);
432-
}
430+
self.insert_struct = self.insert_struct.add_many(models);
433431
self
434432
}
435433

0 commit comments

Comments
 (0)