summaryrefslogtreecommitdiffstats
path: root/cmd/platform/channel.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/platform/channel.go')
-rw-r--r--cmd/platform/channel.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/cmd/platform/channel.go b/cmd/platform/channel.go
index 2510f90f3..550d0802e 100644
--- a/cmd/platform/channel.go
+++ b/cmd/platform/channel.go
@@ -120,8 +120,6 @@ func createChannelCmdF(cmd *cobra.Command, args []string) error {
return errors.New("Unable to find team: " + teamArg)
}
- c := getMockContext()
-
channel := &model.Channel{
TeamId: team.Id,
Name: name,
@@ -129,7 +127,7 @@ func createChannelCmdF(cmd *cobra.Command, args []string) error {
Header: header,
Purpose: purpose,
Type: channelType,
- CreatorId: c.Session.UserId,
+ CreatorId: "",
}
if _, err := app.CreateChannel(channel, false); err != nil {