Revision 42210
Added by Alessia Bardi about 8 years ago
MongoPublisherStore.java | ||
---|---|---|
491 | 491 |
obj.put(OAIConfigurationReader.DATESTAMP_FIELD, feedDate); |
492 | 492 |
obj.put(OAIConfigurationReader.UPDATED_FIELD, true); |
493 | 493 |
Bson oldObj = Filters.eq(OAIConfigurationReader.ID_FIELD, oaiID); |
494 |
unackCollection.updateOne(oldObj, obj, new UpdateOptions().upsert(true));
|
|
494 |
unackCollection.replaceOne(oldObj, obj, new UpdateOptions().upsert(true));
|
|
495 | 495 |
this.upsertSets(recordProperties.get(OAIConfigurationReader.SET_FIELD)); |
496 | 496 |
} |
497 | 497 |
|
Also available in: Unified diff
Call the correct mongo method for upserting (via replace) an object.