fix: handle LoginPolicyRemoved in auth (#982)

This commit is contained in:
Livio Amstutz 2020-11-18 15:18:03 +01:00 committed by GitHub
parent 990ee933d7
commit 16cd7388ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,6 +56,8 @@ func (m *LoginPolicy) processLoginPolicy(event *models.Event) (err error) {
return err
}
err = policy.AppendEvent(event)
case model.LoginPolicyRemoved:
return m.view.DeleteLoginPolicy(event.AggregateID, event.Sequence)
default:
return m.view.ProcessedLoginPolicySequence(event.Sequence)
}