Skip to content

Commit

Permalink
fix search integration
Browse files Browse the repository at this point in the history
  • Loading branch information
meteor-ec committed Feb 14, 2019
1 parent f74fd1d commit 8db7f90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/class-ecwid-products.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,12 +311,12 @@ public function estimate_sync() {
$result['last_update'] = $this->_status->get_last_sync_time();

if ($updated->total > 0) {
$result['updated_from'] = $updated->items[0]->updated - 1;
$result['updated_from'] = $updated->items[0]->updated;
$result['last_updated'] = Ecwid_Api_V3::format_time($this->_status->last_deleted_product_time);
}

if ($deleted->total > 0) {
$result['deleted_from'] = $deleted->items[0]->date - 1;
$result['deleted_from'] = $deleted->items[0]->date;
$result['last_deleted'] = Ecwid_Api_V3::format_time($this->_status->last_deleted_product_time);
}

Expand Down

0 comments on commit 8db7f90

Please sign in to comment.