Skip to content

Commit 172d165

Browse files
authored
Merge pull request quarkusio#509 from cescoffier/features/fix-compilation-after-mongo-4
fix compilation issue after the update to MongoDb 4.0
2 parents e355df3 + 74bdf79 commit 172d165

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mongodb-quickstart/src/main/java/org/acme/mongodb/ReactiveFruitService.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ public Uni<Void> add(Fruit fruit) {
3131
Document document = new Document()
3232
.append("name", fruit.getName())
3333
.append("description", fruit.getDescription());
34-
return getCollection().insertOne(document);
34+
return getCollection().insertOne(document)
35+
.onItem().ignore().andContinueWithNull();
3536
}
3637

3738
private ReactiveMongoCollection<Document> getCollection() {

0 commit comments

Comments
 (0)