Skip to content

Commit

Permalink
Update models/project/column.go
Browse files Browse the repository at this point in the history
  • Loading branch information
wxiaoguang authored Feb 17, 2025
1 parent 92dedaf commit 74c9b7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/project/column.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ func (p *Project) getDefaultColumn(ctx context.Context) (*Column, error) {
var column Column
has, err := db.GetEngine(ctx).
Where("project_id=? AND `default` = ?", p.ID, true).
OrderBy("sorting, id").Get(&column)
Desc("id").Get(&column)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 74c9b7b

Please sign in to comment.