We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 912a04d commit 28d420eCopy full SHA for 28d420e
src/AppComponent.hpp
@@ -31,7 +31,7 @@ class AppComponent {
31
oatpp::String configText = oatpp::base::StrBuffer::loadFromFile(configPath);
32
if (configText) {
33
34
- auto profiles = objectMapper->readFromString<oatpp::Fields<ConfigDto>>(configText);
+ auto profiles = objectMapper->readFromString<oatpp::Fields<oatpp::Object<ConfigDto>>>(configText);
35
36
const char *profileArg = std::getenv("CONFIG_PROFILE"); // first read from env variable
37
if (profileArg == nullptr) {
0 commit comments