summaryrefslogtreecommitdiff
path: root/redfish-core/lib/power.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'redfish-core/lib/power.hpp')
-rw-r--r--redfish-core/lib/power.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/redfish-core/lib/power.hpp b/redfish-core/lib/power.hpp
index 7b2a47ac7a..bc18157c50 100644
--- a/redfish-core/lib/power.hpp
+++ b/redfish-core/lib/power.hpp
@@ -121,7 +121,7 @@ inline void requestRoutesPower(App& app)
[&app](const crow::Request& req,
const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
const std::string& chassisName) {
- if (!redfish::setUpRedfishRoute(app, req, asyncResp->res))
+ if (!redfish::setUpRedfishRoute(app, req, asyncResp))
{
return;
}
@@ -308,7 +308,7 @@ inline void requestRoutesPower(App& app)
[&app](const crow::Request& req,
const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
const std::string& chassisName) {
- if (!redfish::setUpRedfishRoute(app, req, asyncResp->res))
+ if (!redfish::setUpRedfishRoute(app, req, asyncResp))
{
return;
}