Skip to content

Commit

Permalink
delete stale products from database before inserting
Browse files Browse the repository at this point in the history
  • Loading branch information
AnirudhBhat committed Nov 27, 2024
1 parent b1086fc commit 294bf7c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1604,8 +1604,7 @@ class WCProductStore @Inject constructor(
if (forceRefresh &&
offset == 0 &&
includedProductIds.isEmpty() &&
excludedProductIds.isEmpty() &&
filterOptions.isEmpty()
excludedProductIds.isEmpty()
) {
productStorageHelper.deleteProductsForSite(site)
}
Expand Down

0 comments on commit 294bf7c

Please sign in to comment.