From 5e152313eb8ad5d46ccf47719c0e4839825a5ba1 Mon Sep 17 00:00:00 2001 From: Ralph Wessel Date: Mon, 23 Sep 2024 02:40:37 +0100 Subject: [PATCH] DocumentStoreEngine getCache() should use PackageWrap for receiving serialised records --- .../Database/Storage/DocumentStore/DocumentStoreEngine.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SpeckleLib/Speckle/Database/Storage/DocumentStore/DocumentStoreEngine.h b/SpeckleLib/Speckle/Database/Storage/DocumentStore/DocumentStoreEngine.h index e303953..fcb3edd 100644 --- a/SpeckleLib/Speckle/Database/Storage/DocumentStore/DocumentStoreEngine.h +++ b/SpeckleLib/Speckle/Database/Storage/DocumentStore/DocumentStoreEngine.h @@ -162,9 +162,9 @@ namespace speckle::database { return m_cache.get(); //Return an empty container if there's no data //Import the document data into the record cache if constexpr (std::is_same_v) - Transport().receive(std:: forward(*m_cache), active::serialise::Identity{}, storedData); + Transport().receive(std::forward(*m_cache), active::serialise::Identity{}, storedData); else - Transport().receive(ObjWrapper{*m_cache}, active::serialise::Identity{}, storedData); + Transport().receive(active::serialise::PackageWrap{*m_cache}, active::serialise::Identity{}, storedData); return m_cache.get(); } //DocumentStoreEngine::getCache