File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ based on the parameters passed
1010
1111// _adapter is private, use Symbol
1212var _adapter = Symbol ( ) ;
13- import Config from '../Config' ;
1413
1514export class AdaptableController {
1615 constructor ( adapter , appId , options ) {
@@ -28,10 +27,6 @@ export class AdaptableController {
2827 return this [ _adapter ] ;
2928 }
3029
31- get config ( ) {
32- return Config . get ( this . appId ) ;
33- }
34-
3530 expectedAdapterType ( ) {
3631 throw new Error ( 'Subclasses should implement expectedAdapterType()' ) ;
3732 }
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import MailAdapter from '../Adapters/Email/MailAdapter';
55import rest from '../rest' ;
66import Parse from 'parse/node' ;
77import AccountLockout from '../AccountLockout' ;
8+ import Config from '../Config' ;
89
910var RestQuery = require ( '../RestQuery' ) ;
1011var Auth = require ( '../Auth' ) ;
@@ -14,6 +15,10 @@ export class UserController extends AdaptableController {
1415 super ( adapter , appId , options ) ;
1516 }
1617
18+ get config ( ) {
19+ return Config . get ( this . appId ) ;
20+ }
21+
1722 validateAdapter ( adapter ) {
1823 // Allow no adapter
1924 if ( ! adapter && ! this . shouldVerifyEmails ) {
You can’t perform that action at this time.
0 commit comments