diff OrthancServer/Sources/ResourceFinder.cpp @ 5852:ea547160f27e find-refactoring

StatelessDatabaseOperations: reimplementing LookupAttachment()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 29 Oct 2024 15:57:53 +0000
parents b24b61331566
children aeb9f63923b1
line wrap: on
line diff
--- a/OrthancServer/Sources/ResourceFinder.cpp	Tue Oct 29 15:21:15 2024 +0000
+++ b/OrthancServer/Sources/ResourceFinder.cpp	Tue Oct 29 15:57:53 2024 +0000
@@ -326,7 +326,8 @@
         if (responseContent_ & ResponseContentFlags_AttachmentsLegacy)
         {
           FileInfo info;
-          if (resource.LookupAttachment(info, FileContentType_Dicom))
+          int64_t revision;
+          if (resource.LookupAttachment(info, revision, FileContentType_Dicom))
           {
             target["FileSize"] = static_cast<Json::UInt64>(info.GetUncompressedSize());
             target["FileUuid"] = info.GetUuid();