GH-369 - Prefer MongoTemplate.findAndModify(…) over ….updateFirst(…).
Original pull request: GH-380.
This commit is contained in:
committed by
Oliver Drotbohm
parent
b4bb541649
commit
2afa435722
@@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user