Merge branch 'hotfix/21.56.9' into master
[gitter.git] / server / services / live-collection-handlers / live-collection-user-groups.js
blob5f70e00d92380796b64299e58dee4f22fad60772
1 'use strict';
3 var appEvents = require('gitter-web-appevents');
4 var _ = require('lodash');
6 module.exports = {
7 patch: function(userId, groupId, patchData) {
8 var patchMessage = _.extend({}, patchData, {
9 id: groupId
10 });
12 appEvents.dataChange2('/user/' + userId + '/groups', 'patch', patchMessage, 'group');