Mercurial > hg > orthanc
diff OrthancServer/ServerIndex.cpp @ 1246:54bf0f0245f4
refactoring
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 08 Dec 2014 12:56:30 +0100 |
parents | a0e420c5f2b8 |
children | 32fcc5dc7562 |
line wrap: on
line diff
--- a/OrthancServer/ServerIndex.cpp Mon Dec 08 12:42:50 2014 +0100 +++ b/OrthancServer/ServerIndex.cpp Mon Dec 08 12:56:30 2014 +0100 @@ -1157,14 +1157,16 @@ } // No need for a SQLite::ITransaction here, as we only insert 1 record - db_->LogExportedResource(type, - publicId, - remoteModality, - patientId, - studyInstanceUid, - seriesInstanceUid, - sopInstanceUid, - boost::posix_time::second_clock::local_time()); + ExportedResource resource(-1, + type, + publicId, + remoteModality, + Toolbox::GetNowIsoString(), + patientId, + studyInstanceUid, + seriesInstanceUid, + sopInstanceUid); + db_->LogExportedResource(resource); }