File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,12 +11,5 @@ setupDeprecationWorkflow({
1111 handler : 'throw' ,
1212 matchId : 'deprecated-run-loop-and-computed-dot-access' ,
1313 } ,
14- {
15- handler : 'silence' ,
16- matchId : 'ember-data:deprecate-non-strict-relationships' ,
17- } ,
18- { handler : 'silence' , matchId : 'ember-data:deprecate-store-find' } ,
19- { handler : 'silence' , matchId : 'remove-owner-inject' } ,
20- { handler : 'silence' , matchId : 'ember-polyfills.deprecate-assign' } ,
2114 ] ,
2215} ) ;
Original file line number Diff line number Diff line change @@ -37,13 +37,13 @@ export default class ClassRoute extends Route {
3737 }
3838
3939 find ( typeName , param ) {
40- return this . store . find ( typeName , param ) . catch ( ( e1 ) => {
40+ return this . store . findRecord ( typeName , param ) . catch ( ( e1 ) => {
4141 if ( typeName != 'namespace' ) {
4242 console . warn (
4343 e1 ,
4444 'fetching by class or module failed, retrying as namespace' ,
4545 ) ;
46- return this . store . find ( 'namespace' , param ) . catch ( ( e2 ) => {
46+ return this . store . findRecord ( 'namespace' , param ) . catch ( ( e2 ) => {
4747 console . error ( e2 ) ;
4848 return resolve ( {
4949 isError : true ,
Original file line number Diff line number Diff line change @@ -33,13 +33,13 @@ export default class FunctionRoute extends Route {
3333 let fnModule ;
3434
3535 try {
36- fnModule = await this . store . find (
36+ fnModule = await this . store . findRecord (
3737 'class' ,
3838 `${ project } -${ projectVersion } -${ className } ` . toLowerCase ( ) ,
3939 ) ;
4040 } catch ( e ) {
4141 try {
42- fnModule = await this . store . find (
42+ fnModule = await this . store . findRecord (
4343 'namespace' ,
4444 `${ project } -${ projectVersion } -${ className } ` . toLowerCase ( ) ,
4545 ) ;
You can’t perform that action at this time.
0 commit comments