elderwand 0.1.43 → 0.1.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -464,7 +464,7 @@ module.exports.inherit = function (child) {
464
464
  }else{
465
465
  criteria = child.model.list(options, callback);
466
466
  }
467
- child.model.remove(criteria, function(err){
467
+ child.model.deleteMany(criteria, function(err){
468
468
  req.flash('info', 'Başarıyla Silindi');
469
469
  res.statusData = "Success"
470
470
  res.redirect('/' + child.pluralName);
@@ -377,7 +377,8 @@ module.exports = function(){
377
377
 
378
378
  addPropertyToClass(Object.prototype,"inject", function(relatedData, keys){
379
379
  if(relatedData && keys){
380
- for (var key in keys) {
380
+ for (var i in keys) {
381
+ var key = keys[i]
381
382
  this[key] = relatedData[key];
382
383
  }
383
384
  }else if (relatedData) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elderwand",
3
- "version": "0.1.43",
3
+ "version": "0.1.47",
4
4
  "description": "KLE Technologies Internal Framework",
5
5
  "main": "./node_modules/.bin/nodemon index.js",
6
6
  "scripts": {