GH-369 - Prefer MongoTemplate.findAndModify(…) over ….updateFirst(…).

Original pull request: GH-380.
This commit is contained in:
nkolosnjaji
2023-11-17 23:25:12 +01:00
committed by Oliver Drotbohm
parent b4bb541649
commit 2afa435722

View File

@@ -89,7 +89,7 @@ class MongoDbEventPublicationRepository implements EventPublicationRepository {
var update = Update.update(COMPLETION_DATE, completionDate);
mongoTemplate.updateFirst(byEventAndListenerId(event, identifier), update, MongoDbEventPublication.class);
mongoTemplate.findAndModify(byEventAndListenerId(event, identifier), update, MongoDbEventPublication.class);
}
/*