File tree 1 file changed +4
-4
lines changed
packages/time-series/lib/commands
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ export function transformTimestampArgument(timestamp: Timestamp): string {
128
128
}
129
129
130
130
export function pushRetentionArgument ( args : RedisCommandArguments , retention ?: number ) : RedisCommandArguments {
131
- if ( retention ) {
131
+ if ( retention !== undefined ) {
132
132
args . push (
133
133
'RETENTION' ,
134
134
retention . toString ( )
@@ -144,7 +144,7 @@ export enum TimeSeriesEncoding {
144
144
}
145
145
146
146
export function pushEncodingArgument ( args : RedisCommandArguments , encoding ?: TimeSeriesEncoding ) : RedisCommandArguments {
147
- if ( encoding ) {
147
+ if ( encoding !== undefined ) {
148
148
args . push (
149
149
'ENCODING' ,
150
150
encoding
@@ -155,7 +155,7 @@ export function pushEncodingArgument(args: RedisCommandArguments, encoding?: Tim
155
155
}
156
156
157
157
export function pushChunkSizeArgument ( args : RedisCommandArguments , chunkSize ?: number ) : RedisCommandArguments {
158
- if ( chunkSize ) {
158
+ if ( chunkSize !== undefined ) {
159
159
args . push (
160
160
'CHUNK_SIZE' ,
161
161
chunkSize . toString ( )
@@ -166,7 +166,7 @@ export function pushChunkSizeArgument(args: RedisCommandArguments, chunkSize?: n
166
166
}
167
167
168
168
export function pushDuplicatePolicy ( args : RedisCommandArguments , duplicatePolicy ?: TimeSeriesDuplicatePolicies ) : RedisCommandArguments {
169
- if ( duplicatePolicy ) {
169
+ if ( duplicatePolicy !== undefined ) {
170
170
args . push (
171
171
'DUPLICATE_POLICY' ,
172
172
duplicatePolicy
You can’t perform that action at this time.
0 commit comments