|
|
|
@ -152,7 +152,7 @@ class Heytrip {
|
|
|
|
|
today.setHours(0, 0, 0, 0); // set the time to 00:00:00.000
|
|
|
|
|
|
|
|
|
|
let lastPageIndex; let pageIndex;
|
|
|
|
|
lastPageIndex = await this.getFirstPageIndex({ last_modify_time: { [Op.lt]: today } });
|
|
|
|
|
lastPageIndex = await this.getFirstPageIndex({ last_modify_time: { [Op.lt]: today }, page_index: { [Op.lt]: 9999 } });
|
|
|
|
|
pageIndex = lastPageIndex;
|
|
|
|
|
if (isEmpty(lastPageIndex)) {
|
|
|
|
|
lastPageIndex = await this.getLastPageIndex({ last_modify_time: { [Op.gt]: today }, page_index: { [Op.lt]: 9999 } });
|
|
|
|
|