Skip to content

Commit

Permalink
docs: ActiveModelBehavior::after_save takes Model (SeaQL/sea-orm#339
Browse files Browse the repository at this point in the history
)
  • Loading branch information
billy1624 committed Dec 22, 2021
1 parent e8aa2d4 commit 57bf2cf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ impl ActiveModelBehavior for ActiveModel {
}

/// Will be triggered after insert / update
fn after_save(self, insert: bool) -> Result<Self, DbErr> {
Ok(self)
fn after_save(model: Model, insert: bool) -> Result<Model, DbErr> {
Ok(model)
}

/// Will be triggered before delete
Expand Down

0 comments on commit 57bf2cf

Please sign in to comment.