diff --git a/Gemfile b/Gemfile index 00d7d8c4..c824482d 100644 --- a/Gemfile +++ b/Gemfile @@ -79,7 +79,7 @@ gem 'good_job', '~> 4.0' gem 'rotp' gem 'grpc', '~> 1.67' -gem 'tucana', '0.0.50' +gem 'tucana', '0.0.52' gem 'code0-identities', '~> 0.0.3' diff --git a/Gemfile.lock b/Gemfile.lock index 2479dce1..19349ef4 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -377,7 +377,7 @@ GEM thor (1.4.0) timeout (0.6.0) tsort (0.2.0) - tucana (0.0.50) + tucana (0.0.52) grpc (~> 1.64) tzinfo (2.0.6) concurrent-ruby (~> 1.0) @@ -431,7 +431,7 @@ DEPENDENCIES simplecov (~> 0.22.0) simplecov-cobertura (~> 3.0) test-prof (~> 1.0) - tucana (= 0.0.50) + tucana (= 0.0.52) tzinfo-data RUBY VERSION diff --git a/app/models/flow_setting.rb b/app/models/flow_setting.rb index 274cc61b..2cefaf08 100644 --- a/app/models/flow_setting.rb +++ b/app/models/flow_setting.rb @@ -7,7 +7,7 @@ def to_grpc Tucana::Shared::FlowSetting.new( database_id: id, flow_setting_id: flow_setting_id, - object: Tucana::Shared::Struct.from_hash(object) + value: Tucana::Shared::Value.from_ruby(object) ) end end diff --git a/spec/models/flow_spec.rb b/spec/models/flow_spec.rb index b54294d6..d57efd3a 100644 --- a/spec/models/flow_spec.rb +++ b/spec/models/flow_spec.rb @@ -90,10 +90,12 @@ settings: [ database_id: flow.flow_settings.first.id, flow_setting_id: flow.flow_settings.first.flow_setting_id, - object: { - fields: { - 'url' => { - string_value: flow.flow_settings.first.object['url'], + value: { + struct_value: { + fields: { + 'url' => { + string_value: flow.flow_settings.first.object['url'], + }, }, }, }