// Collection of all business processes which where made online

'use strict';

var  isFalsy = require('../utils/is-falsy');

module.exports = require('../db').BusinessProcess.instances
	.filter(function (obj) {
		if (obj.master !== obj) return false;
		return (obj.constructor.prototype !== obj);
	})
	.filterByKey('isFromEregistrations', true)
	.filterByKey('isDemo', isFalsy);

// Collection of all business processes which where made online

'use strict';

module.exports = require('./resolve')(require('../db').BusinessProcess);

--- 
+++ 
@@ -2,4 +2,12 @@
 
 'use strict';
 
-module.exports = require('./resolve')(require('../db').BusinessProcess);
+var  isFalsy = require('../utils/is-falsy');
+
+module.exports = require('../db').BusinessProcess.instances
+	.filter(function (obj) {
+		if (obj.master !== obj) return false;
+		return (obj.constructor.prototype !== obj);
+	})
+	.filterByKey('isFromEregistrations', true)
+	.filterByKey('isDemo', isFalsy);
Fix general business processes collection
