Skip to content

Commit

Permalink
groups rename fix
Browse files Browse the repository at this point in the history
groups rename was returning a channel object, when it was supposed to return a group object
  • Loading branch information
MartinSchoeler authored Jan 16, 2017
1 parent 0d6d3f5 commit 990c419
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rocketchat-api/server/v1/groups.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ RocketChat.API.v1.addRoute('groups.rename', { authRequired: true }, {
});

return RocketChat.API.v1.success({
channel: RocketChat.models.Rooms.findOneById(findResult.rid, { fields: RocketChat.API.v1.defaultFieldsToExclude })
group: RocketChat.models.Rooms.findOneById(findResult.rid, { fields: RocketChat.API.v1.defaultFieldsToExclude })
});
}
});
Expand Down

0 comments on commit 990c419

Please sign in to comment.