Skip to content

Commit

Permalink
Replace deprecated find with findRecord
Browse files Browse the repository at this point in the history
  • Loading branch information
simonihmig committed Jan 13, 2024
1 parent 81a8182 commit ef781ca
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions app/routes/releases/beta.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export default class ReleasesBetaRoute extends Route {

model() {
return hash({
ember: this.store.find('project', 'ember/beta'),
emberData: this.store.find('project', 'emberData/beta'),
ember: this.store.findRecord('project', 'ember/beta'),
emberData: this.store.findRecord('project', 'emberData/beta'),
});
}

Expand Down
4 changes: 2 additions & 2 deletions app/routes/releases/canary.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ export default class ReleasesCanaryRoute extends Route {

model() {
return hash({
ember: this.store.find('project', 'ember/canary'),
emberData: this.store.find('project', 'emberData/canary'),
ember: this.store.findRecord('project', 'ember/canary'),
emberData: this.store.findRecord('project', 'emberData/canary'),
canaryInfo: fetch(
'https://s3.amazonaws.com/builds.emberjs.com/canary.json'
).then((response) => response.json()),
Expand Down
2 changes: 1 addition & 1 deletion app/routes/releases/lts.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default class ReleasesLtsRoute extends Route {
@service store;

model() {
return this.store.find('project', 'ember/lts');
return this.store.findRecord('project', 'ember/lts');
}

afterModel() {
Expand Down
4 changes: 2 additions & 2 deletions app/routes/releases/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export default class ReleasesReleaseRoute extends Route {

model() {
return hash({
ember: this.store.find('project', 'ember/release'),
emberData: this.store.find('project', 'emberData/release'),
ember: this.store.findRecord('project', 'ember/release'),
emberData: this.store.findRecord('project', 'emberData/release'),
});
}

Expand Down

0 comments on commit ef781ca

Please sign in to comment.