Skip to content

Commit

Permalink
dont return the default value
Browse files Browse the repository at this point in the history
  • Loading branch information
chobits committed Oct 10, 2024
1 parent 19ab65f commit ff5f3e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kong/db/dao/workspaces.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ end
function Workspaces:select_by_name(key, options)
if kong.configuration.database == "off" and key == "default" then
-- it should be a table, not a single string
return { id = lmdb.get(DECLARATIVE_DEFAULT_WORKSPACE_KEY) or DECLARATIVE_DEFAULT_WORKSPACE_ID, }
return { id = lmdb.get(DECLARATIVE_DEFAULT_WORKSPACE_KEY), }
end

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

0 comments on commit ff5f3e9

Please sign in to comment.