'use strict'

function getContacts(contacts, sender) {
  var contactList = [
    {
      'Role': 'Sender',
      'ReferenceNumber': sender
    }
  ]
  contacts.forEach(function (contact) {
    var contact = {
      'ReferenceNumber': contact.personalIdNumber,
      'Role': 'Recipient'
    }
    contactList.push(contact)
  })
  return contactList
}

module.exports = getContacts

'use strict'

function getContacts(contacts, sender) {
  var contactList = [
    {
      'ReferenceNumber': sender,
      'Role': 'Sender'
    }
  ]
  contacts.forEach(function (contact) {
    var contact = {
      'ReferenceNumber': contact.personalIdNumber,
      'Role': 'Recipient'
    }
    contactList.push(contact)
  })
  return contactList
}

module.exports = getContacts

Update get-contacts.js