v1.18.x
Baris Soner Usakli 12 years ago
parent 2148f6ff95
commit c860df7975

@ -342,13 +342,13 @@ var RDB = require('./redis.js'),
}); });
} }
Posts.setPostField = function(pid, field, value, done) { Posts.setPostField = function(pid, field, value, callback) {
RDB.hset('post:' + pid, field, value); RDB.hset('post:' + pid, field, value, callback);
plugins.fireHook('action:post.setField', { plugins.fireHook('action:post.setField', {
'pid': pid, 'pid': pid,
'field': field, 'field': field,
'value': value 'value': value
}, done); });
} }
Posts.getPostsByPids = function(pids, callback) { Posts.getPostsByPids = function(pids, callback) {

Loading…
Cancel
Save