Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

Commit 294bf7c

Browse files
committed
delete stale products from database before inserting
1 parent b1086fc commit 294bf7c

File tree

1 file changed

+1
-2
lines changed
  • plugins/woocommerce/src/main/kotlin/org/wordpress/android/fluxc/store

1 file changed

+1
-2
lines changed

plugins/woocommerce/src/main/kotlin/org/wordpress/android/fluxc/store/WCProductStore.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1604,8 +1604,7 @@ class WCProductStore @Inject constructor(
16041604
if (forceRefresh &&
16051605
offset == 0 &&
16061606
includedProductIds.isEmpty() &&
1607-
excludedProductIds.isEmpty() &&
1608-
filterOptions.isEmpty()
1607+
excludedProductIds.isEmpty()
16091608
) {
16101609
productStorageHelper.deleteProductsForSite(site)
16111610
}

0 commit comments

Comments
 (0)