Skip to content

Commit

Permalink
change function name
Browse files Browse the repository at this point in the history
  • Loading branch information
pirosiki197 committed Sep 2, 2024
1 parent cd9f79d commit 6374788
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/domain/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ type ArtifactRepository interface {

type RuntimeImageRepository interface {
CreateRuntimeImage(ctx context.Context, image *RuntimeImage) error
HardDeleteRuntimeImages(ctx context.Context, appId string) error
DeleteRuntimeImagesByAppID(ctx context.Context, appId string) error
}

type GetBuildCondition struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/infrastructure/repository/runtime_image.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (r *runtimeImageRepository) CreateRuntimeImage(ctx context.Context, image *
return nil
}

func (r *runtimeImageRepository) HardDeleteRuntimeImages(ctx context.Context, appID string) error {
func (r *runtimeImageRepository) DeleteRuntimeImagesByAppID(ctx context.Context, appID string) error {
images, err := models.RuntimeImages(
qm.InnerJoin(fmt.Sprintf(
"%s ON %s = %s",
Expand Down
2 changes: 1 addition & 1 deletion pkg/usecase/apiserver/app_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ func (s *Service) DeleteApplication(ctx context.Context, id string) error {
return err
}
// delete runtime images
err = s.runtimeImageRepo.HardDeleteRuntimeImages(ctx, app.ID)
err = s.runtimeImageRepo.DeleteRuntimeImagesByAppID(ctx, app.ID)
if err != nil {
return err
}
Expand Down

0 comments on commit 6374788

Please sign in to comment.