diff --git a/kong/db/dao/init.lua b/kong/db/dao/init.lua index ddc432c7255b..df2a9fee1097 100644 --- a/kong/db/dao/init.lua +++ b/kong/db/dao/init.lua @@ -967,6 +967,7 @@ function _M.new(db, schema, strategy, errors) local super = setmetatable(fk_methods, DAO) local pagination = strategy.connector and + type(strategy.connector) == "table" and strategy.connector.defaults.pagination or defaults.pagination