Style improvements (#2475)
* HooksRouter is enabled by default * Adds middleswares on PromiseRouter, fixes #2410 * Move testing line to helper * Modernize middlewares.js * Moves DB uniqueness initialization to DBController, modernize * Moves testing related code to spec folder * remove unused _removeHook function * Adds tests, docs for Analytics and improvements * nit * moves back TestUtils
This commit is contained in:
@@ -41,11 +41,6 @@ ParseCloud.afterDelete = function(parseClass, handler) {
|
||||
triggers.addTrigger(triggers.Types.afterDelete, className, handler, Parse.applicationId);
|
||||
};
|
||||
|
||||
ParseCloud._removeHook = function(category, name, type, applicationId) {
|
||||
applicationId = applicationId || Parse.applicationId;
|
||||
triggers._unregister(applicationId, category, name, type);
|
||||
};
|
||||
|
||||
ParseCloud._removeAllHooks = () => {
|
||||
triggers._unregisterAll();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user