Skip to content

Commit

Permalink
fix: test mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Bonnaure committed Nov 18, 2024
1 parent 6ae89ba commit cb67dc3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .lua/luaonbeans.lua
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,10 @@ function HandleRequest()
end

function HandleController(controller)
if BeansEnv == "development" then
return controller[Params.action]()
else
if BeansEnv == "production" then
return controller
else
return controller[Params.action]()
end
end

Expand Down

0 comments on commit cb67dc3

Please sign in to comment.