mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 03:24:26 +00:00
fix: remove project grant member from view (#436)
This commit is contained in:
parent
bc5f16d5b4
commit
8f1c31f37d
@ -70,7 +70,7 @@ func (p *ProjectGrantMember) processProjectGrantMember(event *models.Event) (err
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return p.view.DeleteProjectGrantMember(event.AggregateID, member.UserID, event.Sequence)
|
||||
return p.view.DeleteProjectGrantMember(member.GrantID, member.UserID, event.Sequence)
|
||||
default:
|
||||
return p.view.ProcessedProjectGrantMemberSequence(event.Sequence)
|
||||
}
|
||||
|
@ -31,8 +31,8 @@ func (v *View) PutProjectGrantMember(project *model.ProjectGrantMemberView, sequ
|
||||
return v.ProcessedProjectGrantMemberSequence(sequence)
|
||||
}
|
||||
|
||||
func (v *View) DeleteProjectGrantMember(projectID, userID string, eventSequence uint64) error {
|
||||
err := view.DeleteProjectGrantMember(v.Db, projectGrantMemberTable, projectID, userID)
|
||||
func (v *View) DeleteProjectGrantMember(grantID, userID string, eventSequence uint64) error {
|
||||
err := view.DeleteProjectGrantMember(v.Db, projectGrantMemberTable, grantID, userID)
|
||||
if err != nil {
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user