Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(deprecation): use findRecord instead of find #2548

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/classic-test-app/app/routes/auth-error.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ export default Route.extend({
},

model() {
return this.get('store').find('post', 3);
return this.get('store').findRecord('post', 3);
}
});
2 changes: 1 addition & 1 deletion packages/classic-test-app/app/services/session-account.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default Service.extend({
async loadCurrentUser() {
let accountId = this.get('session.data.authenticated.account_id');
if (accountId) {
let account = await this.get('store').find('account', accountId);
let account = await this.get('store').findRecord('account', accountId);
this.set('account', account);
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/test-app/app/routes/auth-error.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ export default class AuthErrorRoute extends Route {
}

model() {
return this.store.find('post', 3);
return this.store.findRecord('post', 3);
}
}
2 changes: 1 addition & 1 deletion packages/test-app/app/services/session-account.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default class SessionAccountService extends Service {
async loadCurrentUser() {
let accountId = this.session.data.authenticated.account_id;
if (accountId) {
let account = await this.store.find('account', accountId);
let account = await this.store.findRecord('account', accountId);
this.account = account;
}
}
Expand Down