File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
oada/services/http-handler/src Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ import { Responder } from '@oada/lib-kafka';
36
36
37
37
import type Change from '@oada/types/oada/change/v2.js' ;
38
38
import type SocketChange from '@oada/types/oada/websockets/change.js' ;
39
- import type SocketResponse from '@oada/types/oada/websockets/response.js' ;
40
39
import type SocketRequest from '@oada/types/oada/websockets/request.js' ;
40
+ import type SocketResponse from '@oada/types/oada/websockets/response.js' ;
41
41
import type { WriteResponse } from '@oada/write-handler' ;
42
42
import {
43
43
// Runtime check for request type
@@ -86,7 +86,8 @@ class Watch {
86
86
async sendChange ( change : SocketChange ) {
87
87
trace ( { change } , 'Sending change' ) ;
88
88
// HACK: for backwards compatibility with older clients
89
- change . path_leftover = change . path_leftover ?? [ ] ;
89
+ change . path_leftover =
90
+ change . path_leftover ?? change . requestId . map ( ( ) => '' ) ;
90
91
await this . #send( JSON . stringify ( change ) ) ;
91
92
}
92
93
You can’t perform that action at this time.
0 commit comments