Skip to content

Commit

Permalink
Fix TryInsert as well (#2459)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyt2y3 authored Dec 24, 2024
1 parent 29b7aa7 commit 72c6fc8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/query/insert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -427,9 +427,7 @@ where
M: IntoActiveModel<A>,
I: IntoIterator<Item = M>,
{
for model in models.into_iter() {
self.insert_struct = self.insert_struct.add(model);
}
self.insert_struct = self.insert_struct.add_many(models);
self
}

Expand Down

0 comments on commit 72c6fc8

Please sign in to comment.