1
mirror of https://gitlab.com/commento/commento.git synced 2025-06-29 10:55:40 -04:00

api: rename VoteDirection to Direction

This commit is contained in:
Adhityaa
2018-06-07 13:09:53 +05:30
parent fcf21fd9db
commit 0f2a6a8ccc
3 changed files with 7 additions and 7 deletions

View File

@ -65,9 +65,9 @@ func commentList(commenterHex string, domain string, path string, includeUnappro
`
row := db.QueryRow(statement, c.CommentHex, commenterHex)
if err = row.Scan(&c.VoteDirection); err != nil {
if err = row.Scan(&c.Direction); err != nil {
// TODO: is the only error here that there is no such entry?
c.VoteDirection = 0
c.Direction = 0
}
}