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

Commit ea83ad35 by Sascha Depold

use forEach

1 parent 1a76f04c
Showing with 2 additions and 4 deletions
......@@ -24,10 +24,8 @@ SequelizeHelper = {
var actualValues = object.values,
result = []
SequelizeHelper.Hash.keys(actualValues).forEach(function(key) {
var value = actualValues[key],
dataType = object.attributes[key]
SequelizeHelper.Hash.forEach(actualValues, function(value, key) {
var dataType = object.attributes[key]
result.push(SequelizeHelper.SQL.transformValueByDataType(value, dataType))
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!