diff options
author | icebaker <113217272+icebaker@users.noreply.github.com> | 2024-01-06 22:16:01 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-06 22:16:01 -0300 |
commit | 28472564b37c7dd597363071b180064473a06933 (patch) | |
tree | 8d2709d35089ec8afb60bd20c6855de4623e3d1b /logic/providers/maritaca/tokens.rb | |
parent | bfe0e76e3683a71bb8ce5bfdaae99b0252e7be05 (diff) | |
parent | c4807b26f0d530ef99ff87b6c5c45a4953ba958a (diff) |
Merge pull request #14 from icebaker/ib-new-providers
Adding new providers
Diffstat (limited to 'logic/providers/maritaca/tokens.rb')
-rw-r--r-- | logic/providers/maritaca/tokens.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/logic/providers/maritaca/tokens.rb b/logic/providers/maritaca/tokens.rb new file mode 100644 index 0000000..1ae2219 --- /dev/null +++ b/logic/providers/maritaca/tokens.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module NanoBot + module Logic + module Maritaca + module Tokens + def self.apply_policies!(_cartridge, payload) + payload[:messages] = payload[:messages].map { |message| message.except(:_meta) } + payload + end + end + end + end +end |