fix bulk rebuild
This commit is contained in:
parent
3165d88cad
commit
ee57200fb4
@ -37,14 +37,10 @@ func BulkRebuild(c *fiber.Ctx) error {
|
||||
})
|
||||
}
|
||||
|
||||
buildVersion := ""
|
||||
pack.Packages.ForEach(func(k string, v domain.PackageInfo) bool {
|
||||
if v.Status == domain.Current {
|
||||
buildVersion = v.Version
|
||||
return false
|
||||
}
|
||||
return true
|
||||
})
|
||||
buildVersion := pack.NewVersion
|
||||
if buildVersion == "" {
|
||||
buildVersion = pack.Version
|
||||
}
|
||||
|
||||
buildItem := domain.BuildQueueItem{
|
||||
Source: pack,
|
||||
|
Loading…
Reference in New Issue
Block a user