Changed model card dagtabase tag to "models"

Minor namespace tweaks
This commit is contained in:
Ralph Wessel
2024-08-29 14:07:01 +01:00
parent c218da359f
commit bd0be2bb42
3 changed files with 4 additions and 4 deletions
@@ -21,7 +21,7 @@ namespace {
///Serialisation field IDs
static std::array fieldID = {
Identity{"model"},
Identity{"models"},
};
}
@@ -3,8 +3,7 @@
#include "Speckle/Interface/Browser/JSObject.h"
#include "Speckle/Interface/Browser/Functional.h"
#include "Speckle/Interface/Browser/Bridge/JSBridgeArgumentWrap.h"
#include "Speckle/Interface/Browser/Bridge/JSBridgeMethod.h"
#include "Speckle/Interface/Browser/Bridge/JSBridgeMethodBase.h"
namespace active::setting {
class ValueSetting;
@@ -39,11 +39,12 @@ GetCallResult::GetCallResult(BrowserBridge& bridge) : m_bridge{bridge},
--------------------------------------------------------------------*/
std::unique_ptr<WrappedResultArg> GetCallResult::getResult(WrappedResultArg& argument) const {
//Retrieve the requested result
using namespace json;
auto result = m_bridge.releaseResult(argument);
auto item = dynamic_cast<Cargo*>(result.get());
if (!item)
return nullptr;
String jsonOutput;
json::JSONTransport().send(std::forward<Cargo&&>(*item), Identity{}, jsonOutput);
JSONTransport().send(std::forward<Cargo&&>(*item), Identity{}, jsonOutput);
return std::make_unique<WrappedResultArg>(jsonOutput);
} //GetCallResult::getResult