File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ const { ApiConfig } = require('../../config/index.js');
2424const { RunDefinition } = require ( '../../domain/enums/RunDefinition.js' ) ;
2525const { unpackNumberRange } = require ( '../../utilities/rangeUtils.js' ) ;
2626const { splitStringToStringsTrimmed } = require ( '../../utilities/stringUtils.js' ) ;
27+ const { setTimeRangeQuery } = require ( '../../utilities/setTimeRangeQuery.js' ) ;
2728
2829/**
2930 * GetAllLhcFillsUseCase
@@ -54,15 +55,11 @@ class GetAllLhcFillsUseCase {
5455 }
5556
5657 if ( stableBeamsStart ) {
57- const from = stableBeamsStart . from !== undefined ? stableBeamsStart . from : 0 ;
58- const to = stableBeamsStart . to !== undefined ? stableBeamsStart . to : new Date ( ) . getTime ( ) ;
59- queryBuilder . where ( 'stableBeamsStart' ) . between ( from , to ) ;
58+ setTimeRangeQuery ( stableBeamsStart , 'stableBeamsStart' , queryBuilder ) ;
6059 }
6160
6261 if ( stableBeamsEnd ) {
63- const from = stableBeamsEnd . from !== undefined ? stableBeamsEnd . from : 0 ;
64- const to = stableBeamsEnd . to !== undefined ? stableBeamsEnd . to : new Date ( ) . getTime ( ) ;
65- queryBuilder . where ( 'stableBeamsEnd' ) . between ( from , to ) ;
62+ setTimeRangeQuery ( stableBeamsEnd , 'stableBeamsEnd' , queryBuilder ) ;
6663 }
6764
6865 if ( fillNumbers ) {
You can’t perform that action at this time.
0 commit comments