|
|
@ -2159,6 +2159,8 @@ define([
|
|
|
|
if (!data.channel) { return void cb({ error: 'ENOTFOUND'}); }
|
|
|
|
if (!data.channel) { return void cb({ error: 'ENOTFOUND'}); }
|
|
|
|
if (!data.command) { return void cb({ error: 'EINVAL' }); }
|
|
|
|
if (!data.command) { return void cb({ error: 'EINVAL' }); }
|
|
|
|
var s = getStore(data.teamId);
|
|
|
|
var s = getStore(data.teamId);
|
|
|
|
|
|
|
|
if (!s) { return void cb({ error: 'ENOTFOUND' }); }
|
|
|
|
|
|
|
|
|
|
|
|
var otherChannels = data.channels;
|
|
|
|
var otherChannels = data.channels;
|
|
|
|
delete data.channels;
|
|
|
|
delete data.channels;
|
|
|
|
s.rpc.setMetadata(data, function (err, res) {
|
|
|
|
s.rpc.setMetadata(data, function (err, res) {
|
|
|
|