Skip to content

Commit

Permalink
Merge pull request #42 from graywolf336/fix/resource-deletion
Browse files Browse the repository at this point in the history
fix: resource instance delete not working
  • Loading branch information
RazcoDev authored May 28, 2024
2 parents fefe907 + d392e97 commit edb6071
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions pkg/api/resourceInstances.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package api

import (
"context"

"github.com/permitio/permit-golang/pkg/config"
"github.com/permitio/permit-golang/pkg/errors"
"github.com/permitio/permit-golang/pkg/models"
Expand Down Expand Up @@ -67,7 +68,7 @@ func (r *ResourceInstances) Delete(
return err
}

httpRes, err := r.client.ResourceInstances.DeleteResourceInstance(ctx,
httpRes, err := r.client.ResourceInstancesApi.DeleteResourceInstance(ctx,
r.config.Context.GetProject(),
r.config.Context.GetEnvironment(),
instanceId,
Expand All @@ -94,7 +95,7 @@ func (r *ResourceInstances) Get(
return nil, err
}

retrieved, httpRes, err := r.client.ResourceInstances.GetResourceInstance(ctx,
retrieved, httpRes, err := r.client.ResourceInstancesApi.GetResourceInstance(ctx,
r.config.Context.GetProject(),
r.config.Context.GetEnvironment(),
instanceId,
Expand Down
1 change: 0 additions & 1 deletion pkg/openapi/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit edb6071

Please sign in to comment.