Skip to content

Commit

Permalink
fix tests on CircleCI (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsideup committed Feb 23, 2018
1 parent 6039a7c commit e43b4d9
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.amazonaws.handlers.AsyncHandler;
import com.amazonaws.services.dynamodbv2.AmazonDynamoDBAsync;
import com.amazonaws.services.dynamodbv2.document.ItemUtils;
import com.amazonaws.services.dynamodbv2.model.*;
import com.amazonaws.util.ImmutableMapParameter;
import com.github.bsideup.liiklus.positions.PositionsStorage;
Expand All @@ -12,7 +11,6 @@
import reactor.core.publisher.Mono;
import reactor.core.publisher.SignalType;

import java.math.BigDecimal;
import java.time.Duration;
import java.util.HashMap;
import java.util.Map;
Expand Down Expand Up @@ -65,7 +63,7 @@ public void onSuccess(GetItemRequest request, GetItemResult getItemResult) {
AttributeValue attributeValue = positions != null ? positions.get(it.toString()) : null;

if (attributeValue != null) {
return ((BigDecimal) ItemUtils.toSimpleValue(attributeValue)).longValue();
return Long.parseLong(attributeValue.getN());
} else {
return externalPositions.get(it);
}
Expand Down

0 comments on commit e43b4d9

Please sign in to comment.