Skip to content

Commit

Permalink
Merge pull request #65 from holaplex/mpw/credits-plugin-fix
Browse files Browse the repository at this point in the history
remove bool condition to expose balance
  • Loading branch information
mpwsh authored May 9, 2023
2 parents ad2611a + 086ff6c commit 51f22dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/hub-gateway/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type: application
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)

version: "0.14.0"
version: "0.14.1"

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
6 changes: 2 additions & 4 deletions charts/hub-gateway/plugins/credits.lua
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,8 @@ function _M.access(conf, ctx)
end

-- respond the credit balance to the user too
if conf.expose_credit_balance then
core.request.set_header(ctx, "X-Credit-Balance", data.balance)
core.response.set_header(ctx, "X-Credit-Balance", data.balance)
end
core.request.set_header(ctx, "X-Credit-Balance", data.balance)
core.response.set_header(ctx, "X-Credit-Balance", data.balance)
end

return _M

0 comments on commit 51f22dc

Please sign in to comment.