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

Commit cbf8fa1a by Joel Trost Committed by Matt Broadstone

added alias for updates

1 parent ff83d129
Showing with 4 additions and 3 deletions
...@@ -208,10 +208,11 @@ module.exports = (function() { ...@@ -208,10 +208,11 @@ module.exports = (function() {
for(var key in attributes){ for(var key in attributes){
//console.log(key); //console.log(key);
//console.log('some more action', attributes.deletedAtThisTime); //console.log('some more action', attributes.deletedAtThisTime);
if(attributes[key].primaryKey && attrValueHash[key]){ var aliasKey = attributes[key].field || key;
delete attrValueHash[key]; if(attributes[key].primaryKey && attrValueHash[aliasKey]){
delete attrValueHash[aliasKey];
} }
if(attrValueHash[key] && attrValueHash[key].fn){ if(attrValueHash[aliasKey] && attrValueHash[aliasKey].fn){
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!