mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-31 19:27:00 -06:00
SEARCH-480
- Removed a check
This commit is contained in:
parent
c93e7a45d7
commit
65fcd0b786
@ -254,17 +254,17 @@ class Search {
|
||||
return;
|
||||
}
|
||||
|
||||
let sd = new Date().getTime() - SEARCH_PERIOD_SUBTRACTOR;
|
||||
let sd_time = sd;
|
||||
if (startDate && startDate !== "") {
|
||||
let searchPeriod = new Date().getTime() - SEARCH_PERIOD_SUBTRACTOR;
|
||||
let sd_time = searchPeriod;
|
||||
if (startDate) {
|
||||
sd_time = new Date(parseInt(startDate, 10)).getTime();
|
||||
if (sd_time < sd) {
|
||||
sd_time = sd;
|
||||
if (sd_time < searchPeriod) {
|
||||
sd_time = searchPeriod;
|
||||
}
|
||||
}
|
||||
|
||||
let ed_time = MAXIMUM_DATE;
|
||||
if (endDate && endDate !== "") {
|
||||
if (endDate) {
|
||||
let etime = new Date(parseInt(endDate, 10)).getTime();
|
||||
if (etime) {
|
||||
ed_time = etime
|
||||
|
Loading…
Reference in New Issue
Block a user