Skip to content

Commit 5394900

Browse files
committed
Fix multiple deletion attemps on app removal
1 parent 75a31a1 commit 5394900

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

registry/registry.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1156,7 +1156,9 @@ func RemoveAppFromSpace(s *space.Space, appSlug string) error {
11561156
}
11571157

11581158
// Then remove all live versions
1159-
app.Versions, err = FindAppVersionsCacheMiss(s, appSlug, Dev, Concatenated)
1159+
// NotConcatenated here to avoid trying to delete a stable version 3 times
1160+
// (one for stable, one for beta and one for dev channel)
1161+
app.Versions, err = FindAppVersionsCacheMiss(s, appSlug, Dev, NotConcatenated)
11601162
if err != nil {
11611163
return err
11621164
}

0 commit comments

Comments
 (0)