fixed issue with server crashing on post

This commit is contained in:
Julian Lam
2013-09-30 17:01:39 -04:00
parent 249c45dfe2
commit 181220621e

View File

@@ -185,7 +185,7 @@ var fs = require('fs'),
} else {
// Otherwise, this hook contains no methods
var returnVal = (Array.isArray(args) ? args[0] : args);
if (callback) callback(err, returnVal);
if (callback) callback(null, returnVal);
}
},
isActive: function(id, callback) {