fix(views): view deletion

This commit is contained in:
kolaente 2024-03-18 13:41:42 +01:00
parent 3ec3bb76af
commit 433584813a
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

View File

@ -238,7 +238,7 @@ func (p *ProjectView) ReadOne(s *xorm.Session, _ web.Auth) (err error) {
// @Router /projects/{project}/views/{id} [delete]
func (p *ProjectView) Delete(s *xorm.Session, a web.Auth) (err error) {
_, err = s.
Where("id = ? AND projec_id = ?", p.ID, p.ProjectID).
Where("id = ? AND project_id = ?", p.ID, p.ProjectID).
Delete(&ProjectView{})
return
}