Fix bug with components not being cleaned up after publish update. #116

This commit is contained in:
Andrey Smirnov
2015-03-03 20:49:49 +03:00
parent eb0443ed51
commit 01c0d19243

View File

@@ -260,7 +260,7 @@ func apiPublishUpdateSwitch(c *gin.Context) {
c.Fail(400, fmt.Errorf("snapshots shouldn't be given when updating local repo"))
return
}
updatedComponents := published.Components()
updatedComponents = published.Components()
for _, component := range updatedComponents {
published.UpdateLocalRepo(component)
}