Skip to content

Commit 28d420e

Browse files
committed
Fix src/AppComponent.hpp
1 parent 912a04d commit 28d420e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/AppComponent.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class AppComponent {
3131
oatpp::String configText = oatpp::base::StrBuffer::loadFromFile(configPath);
3232
if (configText) {
3333

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

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

0 commit comments

Comments
 (0)