fix(project): return the full project when setting a background
continuous-integration/drone/push Build is failing Details

Related to #2246
This commit is contained in:
kolaente 2024-04-07 14:53:40 +02:00
parent 6641cbebc2
commit 8bee5aa806
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 7 additions and 0 deletions

View File

@ -143,6 +143,13 @@ func (bp *BackgroundProvider) SetBackground(c echo.Context) error {
_ = s.Rollback()
return handler.HandleHTTPError(err, c)
}
err = project.ReadOne(s, auth)
if err != nil {
_ = s.Rollback()
return handler.HandleHTTPError(err, c)
}
return c.JSON(http.StatusOK, project)
}