Atlantis-Software / offshore

An adapter-based ORM for Node.js with support for mysql, mongo, postgres, redis, and more
MIT License
38 stars 15 forks source link

fix binary data in create neested #10

Closed atiertant closed 8 years ago

atiertant commented 8 years ago

_.cloneDeep broken buffer in nested data. fixed using:

_.cloneDeep(existingData, function dealWithBuffers(val) {
  if (val instanceof Buffer) {
    return val.slice();
  }
});