Skip to content

Commit b6b9b27

Browse files
author
joeltaylor
committed
Use JS convention for naming
1 parent bbda59a commit b6b9b27

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

services/articles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var Articles = {
1515
// Returns all stories that have been approved along with user information
1616
// in DESC published_date order.
1717
published(cb){
18-
db.query('SELECT a.news, a.url, a.title, a.slug, a.body, a,published_at, u.name, u.avatar_url, (SELECT count(*) from comments where article_id = a.id) as comment_count FROM articles as a LEFT JOIN users as u ON a.user_id = u.id WHERE a.approved = true ORDER BY published_at DESC', [], cb)
18+
db.query('SELECT a.news, a.url, a.title, a.slug, a.body, a,published_at, u.name, u.avatar_url, (SELECT count(*) from comments where article_id = a.id) as commentCount FROM articles as a LEFT JOIN users as u ON a.user_id = u.id WHERE a.approved = true ORDER BY published_at DESC', [], cb)
1919
},
2020

2121
// Returns all stories that have been approved for RSS feed. Limit: 25

0 commit comments

Comments
 (0)