File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -303,7 +303,7 @@ export async function listen<SLocals extends AnyServiceLocals = ServiceLocals<Co
303303
304304 const { service, logger } = app . locals ;
305305 const server = httpServer ( app , config ) ;
306- await app . locals . service . attachServer ?.( server ) ;
306+ await app . locals . service . attachServer ?.( app , server ) ;
307307
308308 let shutdownInProgress = false ;
309309 createTerminus ( server , {
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ export interface Service<
7777 attach ?: ( app : ServiceExpress < SLocals > ) => void | Promise < void > ;
7878
7979 // Called after a server is created but before the server starts listening
80- attachServer ?: ( server : Server ) => void | Promise < void > ;
80+ attachServer ?: ( app : ServiceExpress < SLocals > , server : Server ) => void | Promise < void > ;
8181
8282 start ( app : ServiceExpress < SLocals > ) : void | Promise < void > ;
8383
You can’t perform that action at this time.
0 commit comments