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