Commit 2d6b33ab by Tom Petr Committed by Marcus Efraimsson

sqlstore: use column name in order by (#16583)

Use column name in ORDER BY in GetDashboardAclInfoList().
parent 1e98c102
......@@ -112,7 +112,7 @@ func GetDashboardAclInfoList(query *m.GetDashboardAclInfoListQuery) error {
LEFT JOIN ` + dialect.Quote("user") + ` AS u ON u.id = da.user_id
LEFT JOIN team ug on ug.id = da.team_id
WHERE d.org_id = ? AND d.id = ? AND da.id IS NOT NULL
ORDER BY 1 ASC
ORDER BY da.id ASC
`
query.Result = make([]*m.DashboardAclInfoDTO, 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment