Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit acfe6e1

Browse files
author
Bill Heaton
committed
Add some query param to application's request for posts
1 parent 8c5db93 commit acfe6e1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/routes/application.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ var ApplicationRoute = Ember.Route.extend(RenderUsingTimings, {
2828
mark('mark_begin_find_post_records');
2929
}
3030
const limit = config.APP.PAGE_LIMIT;
31-
return this.store.find('post', { 'page[limit]': limit, 'sort': '-date' });
31+
const query = { 'page[limit]': limit, 'sort': '-date', 'include': 'author' };
32+
return this.store.find('post', query);
3233
},
3334

3435
afterModel() {

0 commit comments

Comments
 (0)