Skip to content

Commit

Permalink
Fixed a bug in the subscriptions skill
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafael Campos committed Aug 23, 2018
1 parent 62e63ff commit 54ad428
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/skills/subscriptions.js
Expand Up @@ -9,7 +9,7 @@ module.exports = function(controller) {
var spaces = [];
if (subscription_data) {
spaces = subscription_data.spaces;
if (!users.includes(user)) {
if (!spaces.includes(space)) {
spaces.push(space);
convo.say("You're now subscribed to '{}' notifications.".format(type));
} else {
Expand Down

0 comments on commit 54ad428

Please sign in to comment.