Skip to content

Commit

Permalink
fix: truncate long action messages to avoid overflow (#2773)
Browse files Browse the repository at this point in the history
* Truncate message

* wip

* Update lib/avo/base_action.rb

Co-authored-by: Paul Bob <[email protected]>

* wip

---------

Co-authored-by: Paul Bob <[email protected]>
  • Loading branch information
gabrielgiroe1 and Paul-Bob authored May 17, 2024
1 parent 43e7804 commit 9db6761
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/avo/base_action.rb
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def authorized?
def add_message(body, type = :info)
response[:messages] << {
type: type,
body: body
body: body&.truncate(320)
}
end
end
Expand Down

0 comments on commit 9db6761

Please sign in to comment.