1
0

feat(views): return position when retriving tasks

This commit is contained in:
kolaente
2024-03-16 11:48:50 +01:00
parent 786e67f692
commit f364f3bec8
7 changed files with 35 additions and 11 deletions

View File

@ -134,3 +134,11 @@ func RecalculateTaskPositions(s *xorm.Session, view *ProjectView) (err error) {
_, err = s.Insert(newPositions)
return
}
func getPositionsForView(s *xorm.Session, view *ProjectView) (positions []*TaskPosition, err error) {
positions = []*TaskPosition{}
err = s.
Where("project_view_id = ?", view.ID).
Find(&positions)
return
}