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 := "" 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,