diff --git a/app/lib/nomis_client/alerts.rb b/app/lib/nomis_client/alerts.rb index 63dce7694..5977d6bad 100644 --- a/app/lib/nomis_client/alerts.rb +++ b/app/lib/nomis_client/alerts.rb @@ -23,7 +23,7 @@ def attributes_for(alert) alert_type_description: alert['alertTypeDescription'], alert_code: alert['alertCode'], alert_code_description: alert['alertCodeDescription'], - comment: alert['comment'], + comments: alert['comment'], created_at: alert['dateCreated'], expires_at: alert['dateExpires'], expired: alert['expired'], diff --git a/spec/lib/nomis_client/alerts_spec.rb b/spec/lib/nomis_client/alerts_spec.rb index 4a5105b7b..1ec317db1 100644 --- a/spec/lib/nomis_client/alerts_spec.rb +++ b/spec/lib/nomis_client/alerts_spec.rb @@ -14,7 +14,7 @@ alert_type_description: 'Security', alert_code: 'XVL', alert_code_description: 'Violent', - comment: 'SIR GP162/11 17/01/11 - threatening to take staff hostage', + comments: 'SIR GP162/11 17/01/11 - threatening to take staff hostage', created_at: '2013-03-29', expires_at: '2018-06-08', expired: true, @@ -27,7 +27,7 @@ alert_type_description: 'Security', alert_code: 'XB', alert_code_description: 'Bully', - comment: 'PLACED ON ZT2 MONITORING FOR THREATS TO ASSAULT HIS ASSAILANTS.', + comments: 'PLACED ON ZT2 MONITORING FOR THREATS TO ASSAULT HIS ASSAILANTS.', created_at: '2015-11-21', expires_at: '2019-01-07', expired: false,