File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ class NestApplicationContext extends module_ref_1.ModuleRef {
107107 await Promise . all ( iterare_1 . default ( instances )
108108 . map ( ( [ key , { instance } ] ) => instance )
109109 . filter ( instance => ! shared_utils_1 . isNil ( instance ) )
110- . filter ( this . hasOnModuleInitHook )
110+ . filter ( this . hasOnAppBotstrapHook )
111111 . map ( async ( instance ) => await instance . onApplicationBootstrap ( ) ) ) ;
112112 if ( moduleClassInstance && this . hasOnAppBotstrapHook ( moduleClassInstance ) ) {
113113 await moduleClassInstance . onApplicationBootstrap ( ) ;
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ export class NestApplicationContext extends ModuleRef
154154 iterate ( instances )
155155 . map ( ( [ key , { instance } ] ) => instance )
156156 . filter ( instance => ! isNil ( instance ) )
157- . filter ( this . hasOnModuleInitHook )
157+ . filter ( this . hasOnAppBotstrapHook )
158158 . map (
159159 async instance =>
160160 await ( instance as OnApplicationBootstrap ) . onApplicationBootstrap ( ) ,
You can’t perform that action at this time.
0 commit comments