From 8b17262fc032e8078db632629f363a8055d9f19e Mon Sep 17 00:00:00 2001 From: Taylor Brooks Date: Mon, 23 Oct 2023 22:12:17 -0500 Subject: [PATCH] Update lava shortcode with ForeignKey --- lib/rock_rms/resources/lava_shortcode.rb | 8 ++++++-- lib/rock_rms/version.rb | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/rock_rms/resources/lava_shortcode.rb b/lib/rock_rms/resources/lava_shortcode.rb index ac49564..8f57f2f 100644 --- a/lib/rock_rms/resources/lava_shortcode.rb +++ b/lib/rock_rms/resources/lava_shortcode.rb @@ -21,7 +21,8 @@ def create_lava_shortcode( enabled_lava_commands:, parameters:, tag_name:, - tag_type: + tag_type:, + foreign_key: nil ) options = { 'Name' => name, @@ -34,6 +35,7 @@ def create_lava_shortcode( 'Parameters' => parameters, 'TagName' => tag_name, 'TagType' => tag_type, + 'ForeignKey' => foreign_key } post(lava_shortcodes_path, options) @@ -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 = {} @@ -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) diff --git a/lib/rock_rms/version.rb b/lib/rock_rms/version.rb index 0d32b32..d7df422 100644 --- a/lib/rock_rms/version.rb +++ b/lib/rock_rms/version.rb @@ -1,3 +1,3 @@ module RockRMS - VERSION = '8.15.1'.freeze + VERSION = '8.15.2'.freeze end