Skip to content

Commit

Permalink
Merge pull request #382 from ioki-mobility/fix-rematching-attempt
Browse files Browse the repository at this point in the history
Operator Api | Fix RematchingAttempt model
  • Loading branch information
tom-ioki committed May 14, 2024
2 parents a3b7f3d + f78f268 commit 8bbad0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/ioki/model/operator/rematching_attempt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ class RematchingAttempt < Base
on: :read,
type: :string

attribute :result,
attribute :results,
on: :read,
type: :object,
type: :array,
class_name: 'RematchingAttemptResult'

attribute :ride_ids,
Expand Down
2 changes: 1 addition & 1 deletion spec/ioki/model/operator/rematching_attempt_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
it { is_expected.to define_attribute(:preserve_negotiated_times).as(:boolean) }
it { is_expected.to define_attribute(:reassigner_id).as(:string) }
it { is_expected.to define_attribute(:reassigner_type).as(:string) }
it { is_expected.to define_attribute(:result).as(:object).with(class_name: 'RematchingAttemptResult') }
it { is_expected.to define_attribute(:results).as(:array).with(class_name: 'RematchingAttemptResult') }
it { is_expected.to define_attribute(:ride_ids).as(:array) }
it { is_expected.to define_attribute(:started_at).as(:date_time) }
it { is_expected.to define_attribute(:task_list_id).as(:string) }
Expand Down

0 comments on commit 8bbad0f

Please sign in to comment.