Skip to content
Snippets Groups Projects
Commit ea0c331e authored by Harsheet Shah's avatar Harsheet Shah
Browse files

PBI-6584: Upgrade spring boot dependencies. Spring boot dependencies are...

PBI-6584: Upgrade spring boot dependencies. Spring boot dependencies are inherited from os-common-core.
parent 8aaa2b3d
No related branches found
No related tags found
2 merge requests!346Merge branch 'aws-integration' into 'master',!300PBI-6584: Upgrade spring boot dependencies. Spring boot dependencies are...
Pipeline #101648 failed
......@@ -18,7 +18,7 @@
package org.opengroup.osdu.indexer.persistence;
import static com.mongodb.client.model.Filters.eq;
import static com.mongodb.util.JSON.serialize;
import static com.mongodb.BasicDBObject.parse;
import com.google.gson.Gson;
import com.mongodb.client.MongoCollection;
......@@ -75,7 +75,7 @@ public class ElasticRepositoryMongoDB implements IElasticRepository {
SETTINGS_FETCH_ERROR_MESSAGE);
}
ElasticSettingsDoc elasticSettingsDoc = new Gson().fromJson(serialize(record),
ElasticSettingsDoc elasticSettingsDoc = new Gson().fromJson(String.valueOf(parse(record.toString())),
ElasticSettingsDoc.class);
try {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment