fix(views): create view

This commit is contained in:
kolaente 2024-03-18 14:00:48 +01:00
parent 434b1ea0e8
commit 24fa3b206f
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 2 deletions

View File

@ -257,8 +257,7 @@ func (p *ProjectView) Delete(s *xorm.Session, a web.Auth) (err error) {
// @Failure 500 {object} models.Message "Internal error"
// @Router /projects/{project}/views [put]
func (p *ProjectView) Create(s *xorm.Session, a web.Auth) (err error) {
_, err = s.Insert(p)
return
return createProjectView(s, p, a, true)
}
func createProjectView(s *xorm.Session, p *ProjectView, a web.Auth, createBacklogBucket bool) (err error) {