SEARCH-480

- Removed a check
This commit is contained in:
Keerthi Niranjan 2017-11-23 16:05:06 +05:30
parent c93e7a45d7
commit 65fcd0b786

View File

@ -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