File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -34,12 +34,12 @@ export class CoreApp {
3434 const json = await this . getJSON ( ) ;
3535 const isValid = this . validateJSON ( json ) ;
3636 if ( isValid ) {
37- await this . setupApp ( ) ;
38- this . setupSwagger ( json ) ;
39- await this . setupRoutes ( ) ;
37+ await this . setupApp ( ) ;
38+ this . setupSwagger ( json ) ;
39+ await this . setupRoutes ( ) ;
4040 } else {
41- Output . setError ( " provided json is not valid - see validation checks" )
42- throw Error ( " provided json is not valid - see validation checks" ) ;
41+ Output . setError ( ' provided json is not valid - see validation checks' ) ;
42+ throw Error ( ' provided json is not valid - see validation checks' ) ;
4343 }
4444 }
4545
@@ -79,14 +79,18 @@ export class CoreApp {
7979 }
8080
8181 protected async initializeLayers ( ) {
82- if ( CoreApp . adapter && Object . entries ( CoreApp . adapter ) . length === 0 && CoreApp . adapter . constructor === Object ) {
82+ if (
83+ CoreApp . adapter &&
84+ Object . entries ( CoreApp . adapter ) . length === 0 &&
85+ CoreApp . adapter . constructor === Object
86+ ) {
8387 CoreApp . adapter = await lowdb . default ( CoreApp . storage ) ;
8488 }
8589 const router = jsonServer . router ( CoreApp . adapter ) ;
8690 const middlewares = jsonServer . defaults ( {
8791 readOnly : this . appConfig . readOnly ,
8892 } ) ;
89- return { middlewares, router} ;
93+ return { middlewares, router } ;
9094 }
9195
9296 protected setupServer (
You can’t perform that action at this time.
0 commit comments