Skip to content

Commit 5660759

Browse files
authored
Fix productQueryParameters argument (#590)
* Fix productQueryParameters argument * Fix formatting
1 parent f500e12 commit 5660759

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/main/java/com/commercetools/project/sync/Syncer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ private PagedQueryT getQueryWithTimeBoundedPredicate(
210210
@Nonnull final ZonedDateTime lowerBound, @Nonnull final ZonedDateTime upperBound) {
211211
return (PagedQueryT)
212212
getQuery()
213-
.withWhere("lastModifiedAt >= :lower AND lastModifiedAt <= :upper")
213+
.addWhere("lastModifiedAt >= :lower AND lastModifiedAt <= :upper")
214214
.withPredicateVar("lower", lowerBound)
215215
.withPredicateVar("upper", upperBound);
216216
}

src/main/java/com/commercetools/project/sync/model/ProductSyncCustomRequest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import com.commercetools.project.sync.exception.CliException;
66
import com.fasterxml.jackson.databind.ObjectMapper;
7+
import io.vrap.rmf.base.client.utils.json.JsonUtils;
78
import java.io.IOException;
89

910
// TODO: Migration needed
@@ -34,7 +35,7 @@ public void setWhere(String where) {
3435

3536
public static ProductSyncCustomRequest parseProductQueryParametersOption(String customRequest) {
3637

37-
final ObjectMapper objectMapper = new ObjectMapper();
38+
final ObjectMapper objectMapper = JsonUtils.getConfiguredObjectMapper();
3839

3940
final ProductSyncCustomRequest productSyncCustomRequest;
4041
try {

0 commit comments

Comments
 (0)