This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let action = (id, items) => { | |
return { | |
type: ACTION_TYPE; | |
item: items.filter(i => id === i._id)[0] // item with id will always exists in the array | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/server/modules/ventaLead/lib/VentaLead.js b/server/modules/ventaLead/lib/VentaLead.js | |
index 563c2bc..dede967 100644 | |
--- a/server/modules/ventaLead/lib/VentaLead.js | |
+++ b/server/modules/ventaLead/lib/VentaLead.js | |
@@ -5,87 +5,76 @@ var Car = require('../../car'); | |
var util = require('../../../../lib/util'); | |
var Canalcar = require('../../../../lib/canalcarApiClient'); | |
-var VentaLead = function (rawVentaLead){ | |
- var self = this; |
NewerOlder