fix: remove project grant member from view (#436)

This commit is contained in:
Fabi 2020-07-09 17:56:37 +02:00 committed by GitHub
parent bc5f16d5b4
commit 8f1c31f37d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

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

View File

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