|
27 | 27 |
|
28 | 28 | import javax.annotation.Nullable;
|
29 | 29 |
|
| 30 | +import org.apache.pekko.NotUsed; |
| 31 | +import org.apache.pekko.actor.ActorSystem; |
| 32 | +import org.apache.pekko.event.Logging; |
| 33 | +import org.apache.pekko.event.LoggingAdapter; |
| 34 | +import org.apache.pekko.japi.pf.PFBuilder; |
| 35 | +import org.apache.pekko.stream.SystemMaterializer; |
| 36 | +import org.apache.pekko.stream.javadsl.Source; |
30 | 37 | import org.bson.BsonDocument;
|
31 | 38 | import org.bson.Document;
|
32 | 39 | import org.bson.conversions.Bson;
|
|
71 | 78 | import com.mongodb.reactivestreams.client.MongoCollection;
|
72 | 79 | import com.mongodb.reactivestreams.client.MongoDatabase;
|
73 | 80 |
|
74 |
| -import org.apache.pekko.NotUsed; |
75 |
| -import org.apache.pekko.actor.ActorSystem; |
76 |
| -import org.apache.pekko.event.Logging; |
77 |
| -import org.apache.pekko.event.LoggingAdapter; |
78 |
| -import org.apache.pekko.japi.pf.PFBuilder; |
79 |
| -import org.apache.pekko.stream.SystemMaterializer; |
80 |
| -import org.apache.pekko.stream.javadsl.Source; |
81 | 81 | import scala.PartialFunction;
|
82 | 82 |
|
83 | 83 | /**
|
@@ -402,7 +402,7 @@ private static Metadata readAsMetadata(final Document document) {
|
402 | 402 | .map(dittoBsonJson::serialize)
|
403 | 403 | .map(PolicyTag::fromJson)
|
404 | 404 | .collect(Collectors.toSet());
|
405 |
| - return Metadata.of(thingId, thingRevision, thingPolicyTag, referencedPolicies, modified, null); |
| 405 | + return Metadata.of(thingId, thingRevision, thingPolicyTag, null, referencedPolicies, modified, null); |
406 | 406 | }
|
407 | 407 |
|
408 | 408 | private static AbstractWriteModel documentToWriteModel(final Document document) {
|
|
0 commit comments