Fix Gopher collections query
This commit is contained in:
parent
c42439886c
commit
5be1938a8a
|
@ -1688,7 +1688,7 @@ func (db *datastore) GetPublicCollections(hostName string) (*[]Collection, error
|
||||||
FROM collections c
|
FROM collections c
|
||||||
LEFT JOIN users u ON u.id = c.owner_id
|
LEFT JOIN users u ON u.id = c.owner_id
|
||||||
WHERE c.privacy = 1 AND u.status = 0
|
WHERE c.privacy = 1 AND u.status = 0
|
||||||
ORDER BY id ASC`)
|
ORDER BY title ASC`)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error("Failed selecting public collections: %v", err)
|
log.Error("Failed selecting public collections: %v", err)
|
||||||
return nil, impart.HTTPError{http.StatusInternalServerError, "Couldn't retrieve public collections."}
|
return nil, impart.HTTPError{http.StatusInternalServerError, "Couldn't retrieve public collections."}
|
||||||
|
|
Loading…
Reference in New Issue