Skip to content

Commit

Permalink
fix: use CreateWith
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Sep 7, 2022
1 parent 3ceefd7 commit 9fbbbdf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions persistence/sql/persister_consent.go
Expand Up @@ -466,8 +466,7 @@ WHERE
}

func (p *Persister) CreateLogoutRequest(ctx context.Context, request *consent.LogoutRequest) error {
request.NID = p.NetworkID(ctx)
return errorsx.WithStack(p.Connection(ctx).Create(request))
return errorsx.WithStack(p.CreateWithNetwork(ctx, request))
}

func (p *Persister) AcceptLogoutRequest(ctx context.Context, challenge string) (*consent.LogoutRequest, error) {
Expand Down

0 comments on commit 9fbbbdf

Please sign in to comment.