@ -20,14 +20,16 @@ module.exports = function(Meta) {
Meta.settings.set = function(hash, values, callback) {
var key = 'settings:' + hash;
db.setObject(key, values, function(err) {
if (!err) {
if (err) {
return callback(err);
}
plugins.fireHook('action:settings.set', {
plugin: hash,
settings: values
});
callback.apply(this, arguments);
callback();
};