不要怂,就是干,撸起袖子干!

Commit cc9768b1 by Sascha Depold

Clone the input parameter before modifying it

1 parent 0a0d81a2
Showing with 2 additions and 0 deletions
......@@ -57,6 +57,8 @@ module.exports = (function() {
, smart
obj[this.accessors.get] = function(params) {
params = Utils._.clone(params)
var primaryKeys = Object.keys(this.daoFactory.primaryKeys)
, primaryKey = primaryKeys.length === 1 ? primaryKeys[0] : 'id'
, where = {}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!