Skip to content

Commit

Permalink
fix: use correct class for update
Browse files Browse the repository at this point in the history
  • Loading branch information
bednar committed Mar 28, 2022
1 parent 713d1ed commit a2bf898
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/invocable_scripts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
# Update Invocable Script
#
puts "------- Update -------\n"
update_request = InfluxDB2::ScriptCreateRequest.new(description: 'my updated description')
update_request = InfluxDB2::ScriptUpdateRequest.new(description: 'my updated description')
created_script = scripts_api.update_script(created_script.id, update_request)
puts created_script.inspect

Expand Down

0 comments on commit a2bf898

Please sign in to comment.