Skip to content

Commit

Permalink
workspaces returns {id = lmdb.get}
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Sep 23, 2024
1 parent 5aec38f commit fe0cc9b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kong/db/dao/workspaces.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ end

function Workspaces:select_by_name(key, options)
if kong.configuration.database == "off" and key == "default" then
return lmdb.get(DECLARATIVE_DEFAULT_WORKSPACE_KEY)
--return lmdb.get(DECLARATIVE_DEFAULT_WORKSPACE_KEY)
-- it should be a table, not a single string
return { id = lmdb.get(DECLARATIVE_DEFAULT_WORKSPACE_KEY), }
end

return self.super.select_by_name(self, key, options)
Expand Down

0 comments on commit fe0cc9b

Please sign in to comment.