File tree 2 files changed +2
-13
lines changed
2 files changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,6 @@ export default class Command implements Respondable {
140
140
isReadOnly ?: boolean ;
141
141
142
142
args : CommandParameter [ ] ;
143
- isCustomCommand = false ;
144
143
inTransaction = false ;
145
144
pipelineIndex ?: number ;
146
145
Original file line number Diff line number Diff line change @@ -17,8 +17,6 @@ export default class Script {
17
17
const sha = this . sha ;
18
18
const socketHasScriptLoaded = new WeakSet ( ) ;
19
19
this . Command = class CustomScriptCommand extends Command {
20
- isCustomCommand = true ;
21
-
22
20
toWritable ( socket : object ) : string | Buffer {
23
21
const origReject = this . reject ;
24
22
this . reject = ( err ) => {
@@ -52,11 +50,7 @@ export default class Script {
52
50
options . readOnly = true ;
53
51
}
54
52
55
- const evalsha = new this . Command (
56
- "evalsha" ,
57
- [ this . sha , ...args ] ,
58
- options
59
- ) ;
53
+ const evalsha = new this . Command ( "evalsha" , [ this . sha , ...args ] , options ) ;
60
54
61
55
evalsha . promise = evalsha . promise . catch ( ( err : Error ) => {
62
56
if ( err . message . indexOf ( "NOSCRIPT" ) === - 1 ) {
@@ -65,11 +59,7 @@ export default class Script {
65
59
66
60
// Resend the same custom evalsha command that gets transformed
67
61
// to an eval in case it's not loaded yet on the connection.
68
- const resend = new this . Command (
69
- "evalsha" ,
70
- [ this . sha , ...args ] ,
71
- options
72
- ) ;
62
+ const resend = new this . Command ( "evalsha" , [ this . sha , ...args ] , options ) ;
73
63
74
64
const client = container . isPipeline ? container . redis : container ;
75
65
return client . sendCommand ( resend ) ;
You can’t perform that action at this time.
0 commit comments