diff options
Diffstat (limited to 'redfish-core/lib/log_services.hpp')
-rw-r--r-- | redfish-core/lib/log_services.hpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/redfish-core/lib/log_services.hpp b/redfish-core/lib/log_services.hpp index 8c062aaaeb..ee3ccfc6c4 100644 --- a/redfish-core/lib/log_services.hpp +++ b/redfish-core/lib/log_services.hpp @@ -1170,8 +1170,7 @@ inline void requestRoutesJournalEventLogEntryCollection(App& app) { return; } - size_t top = - delegatedQuery.top.value_or(query_param::maxEntriesPerPage); + size_t top = delegatedQuery.top.value_or(query_param::Query::maxTop); size_t skip = delegatedQuery.skip.value_or(0); // Collections don't include the static data added by SubRoute @@ -1899,8 +1898,7 @@ inline void requestRoutesSystemHostLoggerCollection(App& app) } // If we weren't provided top and skip limits, use the defaults. size_t skip = delegatedQuery.skip.value_or(0); - size_t top = - delegatedQuery.top.value_or(query_param::maxEntriesPerPage); + size_t top = delegatedQuery.top.value_or(query_param::Query::maxTop); size_t logCount = 0; // This vector only store the entries we want to expose that // control by skip and top. @@ -2200,8 +2198,7 @@ inline void requestRoutesBMCJournalLogEntryCollection(App& app) } size_t skip = delegatedQuery.skip.value_or(0); - size_t top = - delegatedQuery.top.value_or(query_param::maxEntriesPerPage); + size_t top = delegatedQuery.top.value_or(query_param::Query::maxTop); // Collections don't include the static data added by SubRoute // because it has a duplicate entry for members @@ -3512,8 +3509,7 @@ inline void requestRoutesPostCodesEntryCollection(App& app) asyncResp->res.jsonValue["Members"] = nlohmann::json::array(); asyncResp->res.jsonValue["Members@odata.count"] = 0; size_t skip = delegatedQuery.skip.value_or(0); - size_t top = - delegatedQuery.top.value_or(query_param::maxEntriesPerPage); + size_t top = delegatedQuery.top.value_or(query_param::Query::maxTop); getCurrentBootNumber(asyncResp, skip, top); }); } |