Skip to content

Commit 2720b03

Browse files
committed
Replace deprecated store.find(model, params) calls
1 parent 6a4e76a commit 2720b03

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

app/routes/keyword/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default Ember.Route.extend({
1010
afterModel(keyword, transition) {
1111
var params = transition.queryParams;
1212
params.keyword = keyword.get('keyword');
13-
return this.store.find('crate', params).then((array) => {
13+
return this.store.query('crate', params).then((array) => {
1414
if (this.controllerFor('keyword/index')) {
1515
this.controllerFor('keyword/index').set('model', array);
1616
}

app/routes/keywords.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ export default Ember.Route.extend({
77
},
88

99
model(params) {
10-
return this.store.find('keyword', params);
10+
return this.store.query('keyword', params);
1111
},
1212
});

app/routes/me/crates.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default Ember.Route.extend(AuthenticatedRoute, {
99

1010
model(params) {
1111
params.user_id = this.session.get('currentUser.id');
12-
return this.store.find('crate', params);
12+
return this.store.query('crate', params);
1313
},
1414
});
1515

app/routes/me/following.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default Ember.Route.extend(AuthenticatedRoute, {
99

1010
model(params) {
1111
params.following = 1;
12-
return this.store.find('crate', params);
12+
return this.store.query('crate', params);
1313
},
1414
});
1515

app/routes/search.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ export default Ember.Route.extend({
99
},
1010

1111
model(params) {
12-
return this.store.find('crate', params);
12+
return this.store.query('crate', params);
1313
},
1414
});

0 commit comments

Comments
 (0)