File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -647,7 +647,8 @@ export const withReplicas = <
647647 const select : Q [ 'select' ] = ( ...args : [ ] ) => getReplica ( replicas ) . select ( ...args ) ;
648648 const selectDistinct : Q [ 'selectDistinct' ] = ( ...args : [ ] ) => getReplica ( replicas ) . selectDistinct ( ...args ) ;
649649 const selectDistinctOn : Q [ 'selectDistinctOn' ] = ( ...args : [ any ] ) => getReplica ( replicas ) . selectDistinctOn ( ...args ) ;
650- const $with : Q [ 'with' ] = ( ...args : any ) => getReplica ( replicas ) . with ( ...args ) ;
650+ const _with : Q [ 'with' ] = ( ...args : any ) => getReplica ( replicas ) . with ( ...args ) ;
651+ const $with : Q [ '$with' ] = ( arg : any ) => getReplica ( replicas ) . $with ( arg ) ;
651652
652653 const update : Q [ 'update' ] = ( ...args : [ any ] ) => primary . update ( ...args ) ;
653654 const insert : Q [ 'insert' ] = ( ...args : [ any ] ) => primary . insert ( ...args ) ;
@@ -669,7 +670,8 @@ export const withReplicas = <
669670 select,
670671 selectDistinct,
671672 selectDistinctOn,
672- with : $with ,
673+ $with,
674+ with : _with ,
673675 get query ( ) {
674676 return getReplica ( replicas ) . query ;
675677 } ,
You can’t perform that action at this time.
0 commit comments