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 5, 2022
1 parent e979b71 commit bf8b064
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 bf8b064

Please sign in to comment.