src/permission/rule-application.js
function getRecordUpdateData (msg) {
  let data

  try {
    data = JSON.parse(msg.data[2])
  } catch (error) {
    return error
  }

  return data
}
function getRecordUpdateData (msg) {
  let data

  try {
    data = JSON.parse(msg.data[2])
  } catch (error) {
    return error
  }

  return data
}
function getRecordUpdateData ( msg ) { let data try { data = JSON . parse ( msg . data [ 2 ] ) } catch ( error ) { return error } return data }
Extracts the data from record update messages

@param   {Object} msg a deepstream message

@private
@returns {Object} recordData
Extracts the data from record update messages