updating notifications.create to accept a hash instead of discrete arguments - breaking change

This commit is contained in:
Julian Lam
2014-02-15 14:52:59 -05:00
parent 17ae56e555
commit aba1b95cac
5 changed files with 44 additions and 29 deletions

View File

@@ -260,7 +260,11 @@ SocketPosts.flag = function(socket, pid, callback) {
},
function(adminGroup, next) {
notifications.create(message, path, 'post_flag:' + pid, function(nid) {
notifications.create({
text: message,
path: path,
uniqueId: 'post_flag:' + pid
}, function(nid) {
notifications.push(nid, adminGroup.members, function() {
next(null);
});