Skip to content

Commit

Permalink
Fix productQueryParameters argument (#590)
Browse files Browse the repository at this point in the history
* Fix productQueryParameters argument

* Fix formatting
  • Loading branch information
lojzatran authored Jun 4, 2024
1 parent f500e12 commit 5660759
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/commercetools/project/sync/Syncer.java
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ private PagedQueryT getQueryWithTimeBoundedPredicate(
@Nonnull final ZonedDateTime lowerBound, @Nonnull final ZonedDateTime upperBound) {
return (PagedQueryT)
getQuery()
.withWhere("lastModifiedAt >= :lower AND lastModifiedAt <= :upper")
.addWhere("lastModifiedAt >= :lower AND lastModifiedAt <= :upper")
.withPredicateVar("lower", lowerBound)
.withPredicateVar("upper", upperBound);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import com.commercetools.project.sync.exception.CliException;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.vrap.rmf.base.client.utils.json.JsonUtils;
import java.io.IOException;

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

public static ProductSyncCustomRequest parseProductQueryParametersOption(String customRequest) {

final ObjectMapper objectMapper = new ObjectMapper();
final ObjectMapper objectMapper = JsonUtils.getConfiguredObjectMapper();

final ProductSyncCustomRequest productSyncCustomRequest;
try {
Expand Down

0 comments on commit 5660759

Please sign in to comment.