api, frontend, db: add comment sorting

Closes https://gitlab.com/commento/commento/issues/215
This commit is contained in:
Adhityaa Chandrasekar
2019-12-04 18:50:50 -08:00
parent 3101af8a5c
commit 3e1576d494
9 changed files with 185 additions and 27 deletions

View File

@@ -27,7 +27,8 @@ func domainGet(dmn string) (domain, error) {
gitlabProvider,
ssoProvider,
ssoSecret,
ssoUrl
ssoUrl,
defaultSortPolicy
FROM domains
WHERE domain = $1;
`
@@ -54,7 +55,8 @@ func domainGet(dmn string) (domain, error) {
&d.GitlabProvider,
&d.SsoProvider,
&d.SsoSecret,
&d.SsoUrl); err != nil {
&d.SsoUrl,
&d.DefaultSortPolicy); err != nil {
return d, errorNoSuchDomain
}