Request.accounts will append rather than overwrite

This commit is contained in:
wltsmrz
2013-11-04 17:00:32 -08:00
parent 43319267ad
commit fd07103e9a

View File

@@ -248,9 +248,9 @@ Request.prototype.accounts = function (accounts, realtime) {
}); });
if (realtime) { if (realtime) {
this.message.rt_accounts = processedAccounts; this.message.rt_accounts = (this.message.rt_accounts || []).concat(processedAccounts);
} else { } else {
this.message.accounts = processedAccounts; this.message.accounts = (this.message.accounts || []).concat(processedAccounts);
} }
return this; return this;