Skip to content

Commit

Permalink
Update channels.create return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusbsilva137 authored Feb 17, 2022
1 parent 4cd8122 commit 3fda0a4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/api/server/v1/channels.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,7 @@ API.v1.addRoute(
bodyParams.members = [...membersToAdd];
}

const { channel } = API.channels.create.execute(userId, bodyParams);

return API.v1.success({ channel });
return API.v1.success(API.channels.create.execute(userId, bodyParams));
},
},
);
Expand Down

0 comments on commit 3fda0a4

Please sign in to comment.