Skip to content

Commit

Permalink
strategy.connector should be a table
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Nov 26, 2024
1 parent bccb03b commit 54ab4ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kong/db/dao/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 54ab4ff

Please sign in to comment.