(runTimeId uint)
| 271 | } |
| 272 | |
| 273 | func (r *RuntimeService) DeleteCheck(runTimeId uint) ([]dto.AppResource, error) { |
| 274 | var res []dto.AppResource |
| 275 | websites, _ := websiteRepo.GetBy(websiteRepo.WithRuntimeID(runTimeId)) |
| 276 | for _, website := range websites { |
| 277 | res = append(res, dto.AppResource{ |
| 278 | Type: "website", |
| 279 | Name: website.PrimaryDomain, |
| 280 | }) |
| 281 | } |
| 282 | return res, nil |
| 283 | } |
| 284 | |
| 285 | func (r *RuntimeService) Delete(runtimeDelete request.RuntimeDelete) error { |
| 286 | runtime, err := runtimeRepo.GetFirst(context.Background(), repo.WithByID(runtimeDelete.ID)) |
nothing calls this directly
no test coverage detected