Skip to content

Commit

Permalink
Update lava shortcode with ForeignKey
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorbrooks committed Oct 24, 2023
1 parent b44ed41 commit 8b17262
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions lib/rock_rms/resources/lava_shortcode.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ def create_lava_shortcode(
enabled_lava_commands:,
parameters:,
tag_name:,
tag_type:
tag_type:,
foreign_key: nil
)
options = {
'Name' => name,
Expand All @@ -34,6 +35,7 @@ def create_lava_shortcode(
'Parameters' => parameters,
'TagName' => tag_name,
'TagType' => tag_type,
'ForeignKey' => foreign_key
}

post(lava_shortcodes_path, options)
Expand All @@ -50,7 +52,8 @@ def update_lava_shortcode(
enabled_lava_commands: nil,
parameters: nil,
tag_name: nil,
tag_type: nil
tag_type: nil,
foreign_key: nil
)

options = {}
Expand All @@ -64,6 +67,7 @@ def update_lava_shortcode(
options['Parameters'] = parameters if parameters
options['TagName'] = tag_name if tag_name
options['TagType'] = tag_type if tag_type
options['ForeignKey'] = foreign_key if foreign_key
options['EnabledLavaCommands'] = enabled_lava_commands if enabled_lava_commands

patch(lava_shortcodes_path(id), options)
Expand Down
2 changes: 1 addition & 1 deletion lib/rock_rms/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module RockRMS
VERSION = '8.15.1'.freeze
VERSION = '8.15.2'.freeze
end

0 comments on commit 8b17262

Please sign in to comment.