From 43cc0fc45c138d16d8a1ed6168173d298b532af5 Mon Sep 17 00:00:00 2001 From: "Claire.Nicholas" Date: Fri, 22 Dec 2023 14:47:33 -0500 Subject: [PATCH] fix pls --- api/build/restart.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/build/restart.go b/api/build/restart.go index 87341e443..1fccc4d54 100644 --- a/api/build/restart.go +++ b/api/build/restart.go @@ -298,8 +298,6 @@ func RestartBuild(c *gin.Context) { } // check if the pipeline did not already exist in the database - // - //nolint:dupl // ignore duplicate code if pipeline == nil { pipeline = compiled pipeline.SetRepoID(r.GetID()) @@ -342,6 +340,9 @@ func RestartBuild(c *gin.Context) { c.JSON(http.StatusCreated, b) d, _ := database.FromContext(c).GetDeploymentForRepo(c, r, b.GetDeployNumber()) + if err != nil { + logger.Errorf("unable to set get deployment for build %s: %v", entry, err) + } build := append(d.Builds, b)