Fix TryInsert as well (#2459)

This commit is contained in:
Chris Tsang 2024-12-24 19:32:26 +08:00 committed by GitHub
parent 29b7aa7004
commit 72c6fc8931
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
} }