File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
packages/cubejs-schema-compiler/src/adapter Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -394,10 +394,10 @@ export class BaseFilter extends BaseDimension {
394394 } else {
395395 throw new Error ( `Unsupported timestamp precision: ${ this . query . timestampPrecision ( ) } ` ) ;
396396 }
397- }
398397
399- if ( date && date . match ( dateRegex ) ) {
400- return `${ date } T00:00:00.${ '0' . repeat ( this . query . timestampPrecision ( ) ) } ` ;
398+ if ( date . match ( dateRegex ) ) {
399+ return `${ date } T00:00:00.${ '0' . repeat ( this . query . timestampPrecision ( ) ) } ` ;
400+ }
401401 }
402402
403403 if ( ! date ) {
@@ -434,10 +434,10 @@ export class BaseFilter extends BaseDimension {
434434 } else {
435435 throw new Error ( `Unsupported timestamp precision: ${ this . query . timestampPrecision ( ) } ` ) ;
436436 }
437- }
438437
439- if ( date && date . match ( dateRegex ) ) {
440- return `${ date } T23:59:59.${ '9' . repeat ( this . query . timestampPrecision ( ) ) } ` ;
438+ if ( date . match ( dateRegex ) ) {
439+ return `${ date } T23:59:59.${ '9' . repeat ( this . query . timestampPrecision ( ) ) } ` ;
440+ }
441441 }
442442
443443 if ( ! date ) {
You can’t perform that action at this time.
0 commit comments