Skip to content

Commit

Permalink
Fix src/AppComponent.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
lganzzzo committed May 23, 2020
1 parent 912a04d commit 28d420e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AppComponent.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class AppComponent {
oatpp::String configText = oatpp::base::StrBuffer::loadFromFile(configPath);
if (configText) {

auto profiles = objectMapper->readFromString<oatpp::Fields<ConfigDto>>(configText);
auto profiles = objectMapper->readFromString<oatpp::Fields<oatpp::Object<ConfigDto>>>(configText);

const char *profileArg = std::getenv("CONFIG_PROFILE"); // first read from env variable
if (profileArg == nullptr) {
Expand Down

0 comments on commit 28d420e

Please sign in to comment.