Skip to content

Commit

Permalink
fix incorrect type for select_by_name
Browse files Browse the repository at this point in the history
  • Loading branch information
dndx authored and chronolaw committed Sep 20, 2024
1 parent d60468a commit 7a60fda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kong/db/dao/workspaces.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ end


function Workspaces:select_by_name(key, options)
if kong.configuration.database == "off" then
if kong.configuration.database == "off" and key == "default" then
return lmdb.get(DECLARATIVE_DEFAULT_WORKSPACE_KEY)
end

return self.super.select_by_name(key, options)
return self.super.select_by_name(self, key, options)
end


Expand Down

0 comments on commit 7a60fda

Please sign in to comment.