Skip to content
This repository was archived by the owner on Sep 7, 2021. It is now read-only.
This repository is currently being migrated. It's locked while the migration is in progress.

fix: execute after hook. #525

Merged
merged 1 commit into from
Jan 25, 2017
Merged

fix: execute after hook. #525

merged 1 commit into from
Jan 25, 2017

Conversation

appleboy
Copy link
Member

Fix some bugs from go-gitea/gitea#677 (comment)

cc @lunny

@@ -226,7 +226,8 @@ func (session *Session) Delete(bean interface{}) (int64, error) {
session.afterDeleteBeans[bean] = &afterClosures
}
} else {
if _, ok := interface{}(bean).(AfterInsertProcessor); ok {
if processor, ok := interface{}(bean).(AfterInsertProcessor); ok {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AfterInsertProcessor ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@lunny lunny added this to the v0.6 milestone Jan 20, 2017
@lunny lunny added the kind/bug label Jan 20, 2017
@appleboy
Copy link
Member Author

@lunny Please review again.

@lunny
Copy link
Member

lunny commented Jan 20, 2017

Could you help add some tests PR int github.com/go-xorm/tests?

@appleboy
Copy link
Member Author

@lunny See the PR go-xorm/tests#16

@lunny
Copy link
Member

lunny commented Jan 25, 2017

@appleboy could you rebase this PR?

@lunny lunny merged commit 445a934 into go-xorm:master Jan 25, 2017
@appleboy appleboy deleted the bugs branch January 25, 2017 14:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants