fix bulk rebuild

This commit is contained in:
ferreo 2024-08-04 18:14:29 +01:00
parent 3165d88cad
commit ee57200fb4

View File

@ -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,