diff OrthancServer/OrthancRestApi/OrthancRestModalities.cpp @ 2944:f395460af74d

simplifying OrthancConfiguration for modalities/peers
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 29 Nov 2018 16:31:20 +0100
parents 4767d36679ed
children d2e548e643af
line wrap: on
line diff
--- a/OrthancServer/OrthancRestApi/OrthancRestModalities.cpp	Thu Nov 29 15:16:32 2018 +0100
+++ b/OrthancServer/OrthancRestApi/OrthancRestModalities.cpp	Thu Nov 29 16:31:20 2018 +0100
@@ -842,7 +842,7 @@
       {
         WebServiceParameters peer;
         
-        if (lock.GetConfiguration().GetOrthancPeer(peer, *it))
+        if (lock.GetConfiguration().LookupOrthancPeer(peer, *it))
         {
           Json::Value jsonPeer = Json::objectValue;
           // only return the minimum information to identify the
@@ -899,7 +899,7 @@
       OrthancConfiguration::ReaderLock lock;
 
       WebServiceParameters peer;
-      if (lock.GetConfiguration().GetOrthancPeer(peer, remote))
+      if (lock.GetConfiguration().LookupOrthancPeer(peer, remote))
       {
         job->SetPeer(peer);    
         OrthancRestApi::GetApi(call).SubmitCommandsJob