Skip to content

Commit

Permalink
Fix compile error.
Browse files Browse the repository at this point in the history
Signed-off-by: Yufei Cai <yufei.cai@bosch.io>
  • Loading branch information
yufei-cai committed May 16, 2022
1 parent 77d4cf3 commit f51fdd3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ private static ThingId toThingId(final Document doc) {

private static Optional<Instant> getModifiedTimestampOptional(final Document doc) {
try {
final var path = List.of(PersistenceConstants.FIELD_THING, PersistenceConstants.FIELD_MODIFIED);
final var path = List.of(PersistenceConstants.FIELD_SORTING, PersistenceConstants.FIELD_MODIFIED);
final var timestampString = doc.getEmbedded(path, String.class);
if (timestampString != null) {
return Optional.of(Instant.parse(timestampString));
Expand Down

0 comments on commit f51fdd3

Please sign in to comment.