Skip to content

Commit

Permalink
CRIMAPP-232 add work stream to submission event message
Browse files Browse the repository at this point in the history
  • Loading branch information
timpeat committed Nov 27, 2023
1 parent ebf1b79 commit e49e26e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/services/events/submission.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ def message
{
id: crime_application.id,
submitted_at: crime_application.submitted_at,
parent_id: crime_application.submitted_application['parent_id']
parent_id: crime_application.submitted_application['parent_id'],
work_stream: crime_application.work_stream
}
end
end
Expand Down
6 changes: 4 additions & 2 deletions spec/services/events/submission_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
id: 'f7b429cc',
submitted_at: DateTime.parse('2023-02-27'),
reference: 673_209,
submitted_application: { 'parent_id' => '9a123b' }
submitted_application: { 'parent_id' => '9a123b' },
work_stream: 'extradition'
)
end

Expand All @@ -16,6 +17,7 @@
message: {
id: 'f7b429cc',
submitted_at: DateTime.parse('2023-02-27'),
parent_id: '9a123b'
parent_id: '9a123b',
work_stream: 'extradition'
}
end

0 comments on commit e49e26e

Please sign in to comment.