Skip to content

Commit

Permalink
Update app/apollo/resolvers/channel.js
Browse files Browse the repository at this point in the history
Co-authored-by: carrolp <[email protected]>
  • Loading branch information
ethanstjohn and carrolp authored May 1, 2023
1 parent 60a694c commit 39c610a
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions app/apollo/resolvers/channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,19 +420,11 @@ const channelResolvers = {
};
});
const subscriptionObjs = _.map(createdSubscriptions, (subscription)=>{
if (subscription.groups.length > 0) {
return {
name: subscription.name,
uuid: subscription.uuid,
groups: subscription.groups
};
}
else {
return {
name: subscription.name,
uuid: subscription.uuid,
};
}
return {
name: subscription.name,
uuid: subscription.uuid,
groups: subscription.groups
};
});

// Allow graphQL plugins to retrieve more information. addChannel can create configs, versions, and subscriptions. Include details of each created resource in pluginContext.
Expand Down

0 comments on commit 39c610a

Please sign in to comment.