|
|
@@ -1,4 +1,5 @@
|
|
|
#include "database_service.hpp"
|
|
|
+#include "json_parse.hpp"
|
|
|
|
|
|
#include <grpcpp/grpcpp.h>
|
|
|
#include <grpcpp/resource_quota.h>
|
|
|
@@ -719,7 +720,7 @@ void DatabaseService::applyReplicatedEntry(const databasepb::ReplicationEntry& e
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- auto json = nlohmann::json::parse(entry.data());
|
|
|
+ auto json = smartbotic::db::parse_to_nlohmann(entry.data());
|
|
|
Document doc = Document::fromJson(json);
|
|
|
doc.id = entry.document_id();
|
|
|
doc.nodeId = entry.node_id();
|