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
303
303
304
304
const { service, logger } = app . locals ;
305
305
const server = httpServer ( app , config ) ;
306
- await app . locals . service . attachServer ?.( server ) ;
306
+ await app . locals . service . attachServer ?.( app , server ) ;
307
307
308
308
let shutdownInProgress = false ;
309
309
createTerminus ( server , {
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ export interface Service<
77
77
attach ?: ( app : ServiceExpress < SLocals > ) => void | Promise < void > ;
78
78
79
79
// 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 > ;
81
81
82
82
start ( app : ServiceExpress < SLocals > ) : void | Promise < void > ;
83
83
You can’t perform that action at this time.
0 commit comments