comprodls-sdk 2.75.0 → 2.75.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12868,13 +12868,11 @@ function _connect(pubnubCW, options) {
12868
12868
 
12869
12869
  function _cleanup(pubnubCW) { pubnubCW.cleanup(); }
12870
12870
 
12871
- /*options = {
12872
- orgId: <orgId>, userId: <userId>
12873
- }*/
12871
+ /*options = {}*/
12874
12872
  function grantByUserOrgId(options) {
12875
12873
  var dfd = q.defer(); // Initializing promise
12876
12874
  var allowedChannels = ['jobs', 'systemevents'];
12877
- var baseChannelName = "o-" + options.orgId + "\\$u-" + options.userId + "\\$";
12875
+ var baseChannelName = "o-" + this.orgId + "\\$u-" + this.token + "\\$";
12878
12876
  var patterns = [];
12879
12877
  for(var i in allowedChannels) {
12880
12878
  var channelName = baseChannelName + allowedChannels[i] + "\\..*";