@@ -69,13 +69,13 @@ export class EventsService<C extends Context = Context> {
69
69
} )
70
70
}
71
71
72
- this . on ( 'internal/update' , function ( config , _next ) {
72
+ this . on ( 'internal/update' , function ( config , _ , next ) {
73
73
const cbs = [ ...this . _hooks [ 'internal/update' ] || [ ] ]
74
- const next = ( ) => {
75
- const cb = cbs . shift ( ) ?? _next
76
- return cb . call ( this , config , next )
74
+ const _next = ( ) => {
75
+ const cb = cbs . shift ( ) ?? next
76
+ return cb . call ( this , config , _next )
77
77
}
78
- return next ( )
78
+ return _next ( )
79
79
} , { global : true , prepend : true } )
80
80
}
81
81
@@ -172,7 +172,7 @@ export interface Events<in C extends Context = Context> {
172
172
'internal/error' ( this : C , format : any , ...param : any [ ] ) : void
173
173
'internal/warn' ( this : C , format : any , ...param : any [ ] ) : void
174
174
'internal/service' ( this : C , name : string , value : any ) : void
175
- 'internal/update' ( this : Fiber < C > , config : any , next : ( ) => void ) : void
175
+ 'internal/update' ( this : Fiber < C > , config : any , noSave : boolean , next : ( ) => void ) : void
176
176
'internal/get' ( ctx : C , name : string , error : Error , next : ( ) => any ) : any
177
177
'internal/set' ( ctx : C , name : string , value : any , error : Error , next : ( ) => boolean ) : boolean
178
178
'internal/listener' ( this : C , name : string , listener : any , prepend : boolean ) : void
0 commit comments