fix build

This commit is contained in:
André Roth
2024-10-09 13:07:33 +02:00
parent bd64232eb6
commit dcbb2a06a5
+3 -2
View File
@@ -457,12 +457,12 @@ func apiPublishUpdateSwitch(c *gin.Context) {
result, err := published.Update(collectionFactory, out) result, err := published.Update(collectionFactory, out)
if err != nil { if err != nil {
return &task.ProcessReturnValue{Code: http.StatusInternalServerError, Value: nil}, fmt.Errorf("unable to update: %s", err) return &task.ProcessReturnValue{Code: http.StatusInternalServerError, Value: nil}, fmt.Errorf("Unable to update: %s", err)
} }
err = published.Publish(context.PackagePool(), context, collectionFactory, signer, out, b.ForceOverwrite) err = published.Publish(context.PackagePool(), context, collectionFactory, signer, out, b.ForceOverwrite)
if err != nil { if err != nil {
return &task.ProcessReturnValue{Code: http.StatusInternalServerError, Value: nil}, fmt.Errorf("unable to update: %s", err) return &task.ProcessReturnValue{Code: http.StatusInternalServerError, Value: nil}, fmt.Errorf("Unable to update: %s", err)
} }
err = collection.Update(published) err = collection.Update(published)
@@ -758,6 +758,7 @@ func apiPublishUpdate(c *gin.Context) {
SkipBz2 *bool SkipBz2 *bool
SkipCleanup *bool SkipCleanup *bool
SkipContents *bool SkipContents *bool
MultiDist *bool
} }
if c.Bind(&b) != nil { if c.Bind(&b) != nil {