mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-02-18 20:06:20 -05:00
chore: Remove UpdateColumnSorting
- Introduced in c69c01d2b6
and removed in
the same commit, no usage at all.
This commit is contained in:
parent
901b32ce16
commit
8c3bfcac3b
2 changed files with 0 additions and 15 deletions
|
@ -61,7 +61,6 @@ code.gitea.io/gitea/models/perm/access
|
|||
GetRepoWriters
|
||||
|
||||
code.gitea.io/gitea/models/project
|
||||
UpdateColumnSorting
|
||||
ChangeProjectStatus
|
||||
|
||||
code.gitea.io/gitea/models/repo
|
||||
|
|
|
@ -305,20 +305,6 @@ func SetDefaultColumn(ctx context.Context, projectID, columnID int64) error {
|
|||
})
|
||||
}
|
||||
|
||||
// UpdateColumnSorting update project column sorting
|
||||
func UpdateColumnSorting(ctx context.Context, cl ColumnList) error {
|
||||
return db.WithTx(ctx, func(ctx context.Context) error {
|
||||
for i := range cl {
|
||||
if _, err := db.GetEngine(ctx).ID(cl[i].ID).Cols(
|
||||
"sorting",
|
||||
).Update(cl[i]); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
})
|
||||
}
|
||||
|
||||
func GetColumnsByIDs(ctx context.Context, projectID int64, columnsIDs []int64) (ColumnList, error) {
|
||||
columns := make([]*Column, 0, 5)
|
||||
if err := db.GetEngine(ctx).
|
||||
|
|
Loading…
Add table
Reference in a new issue