lib/request/update.js
function validateUpdates (updates, meta) {
  var language = meta.language
  var i, j, update

  if (!updates || !updates.length)
    throw new BadRequestError(
      message('UpdateRecordsInvalid', language))

  for (i = 0, j = updates.length; i < j; i++) {
    update = updates[i]
    if (!update[primaryKey])
      throw new BadRequestError(
        message('UpdateRecordMissingID', language))
  }
}
function validateUpdates (updates, meta) {
  var language = meta.language
  var i, j, update

  if (!updates || !updates.length)
    throw new BadRequestError(
      message('UpdateRecordsInvalid', language))

  for (i = 0, j = updates.length; i < j; i++) {
    update = updates[i]
    if (!update[primaryKey])
      throw new BadRequestError(
        message('UpdateRecordMissingID', language))
  }
}
function validateUpdates ( updates , meta ) { var language = meta . language var i , j , update if ( ! updates || ! updates . length ) throw new BadRequestError ( message ( 'UpdateRecordsInvalid' , language ) ) for ( i = 0 , j = updates . length ; i < j ; i ++ ) { update = updates [ i ] if ( ! update [ primaryKey ] ) throw new BadRequestError ( message ( 'UpdateRecordMissingID' , language ) ) } }
Validate updates.
Validate updates .