Skip to content
This repository has been archived by the owner on Jul 4, 2024. It is now read-only.

Commit

Permalink
Replace label repo deleteOne with deleteMany (#1958)
Browse files Browse the repository at this point in the history
* Replace label repo deleteOne with deleteMany

* Bump director version
  • Loading branch information
Daniel Gospodinow committed Jul 20, 2021
1 parent 1cf4d8f commit b6513c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chart/compass/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ global:
version: "PR-1910"
director:
dir:
version: "PR-1952"
version: "PR-1958"
gateway:
dir:
version: "PR-1910"
Expand Down
2 changes: 1 addition & 1 deletion components/director/internal/domain/label/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func (r *repository) ListByKey(ctx context.Context, tenant, key string) ([]*mode
}

func (r *repository) Delete(ctx context.Context, tenant string, objectType model.LabelableObject, objectID string, key string) error {
return r.deleter.DeleteOne(ctx, tenant, repo.Conditions{repo.NewEqualCondition("key", key), repo.NewEqualCondition(labelableObjectField(objectType), objectID)})
return r.deleter.DeleteMany(ctx, tenant, repo.Conditions{repo.NewEqualCondition("key", key), repo.NewEqualCondition(labelableObjectField(objectType), objectID)})
}

func (r *repository) DeleteAll(ctx context.Context, tenant string, objectType model.LabelableObject, objectID string) error {
Expand Down

0 comments on commit b6513c2

Please sign in to comment.