diff options
Diffstat (limited to 'cmd/platform')
-rw-r--r-- | cmd/platform/channelargs.go | 2 | ||||
-rw-r--r-- | cmd/platform/oldcommands.go | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/cmd/platform/channelargs.go b/cmd/platform/channelargs.go index ec697d86b..d64db10bd 100644 --- a/cmd/platform/channelargs.go +++ b/cmd/platform/channelargs.go @@ -42,7 +42,7 @@ func getChannelFromChannelArg(channelArg string) *model.Channel { return nil } - if result := <-app.Srv.Store.Channel().GetByNameIncludeDeleted(team.Id, channelPart); result.Err == nil { + if result := <-app.Srv.Store.Channel().GetByNameIncludeDeleted(team.Id, channelPart, true); result.Err == nil { channel = result.Data.(*model.Channel) } else { fmt.Println(result.Err.Error()) diff --git a/cmd/platform/oldcommands.go b/cmd/platform/oldcommands.go index ee7f66567..15ebb25ba 100644 --- a/cmd/platform/oldcommands.go +++ b/cmd/platform/oldcommands.go @@ -478,7 +478,7 @@ func cmdJoinChannel() { } var channel *model.Channel - if result := <-app.Srv.Store.Channel().GetByName(team.Id, flagChannelName); result.Err != nil { + if result := <-app.Srv.Store.Channel().GetByName(team.Id, flagChannelName, true); result.Err != nil { l4g.Error("%v", result.Err) flushLogAndExit(1) } else { @@ -539,7 +539,7 @@ func cmdLeaveChannel() { } var channel *model.Channel - if result := <-app.Srv.Store.Channel().GetByName(team.Id, flagChannelName); result.Err != nil { + if result := <-app.Srv.Store.Channel().GetByName(team.Id, flagChannelName, true); result.Err != nil { l4g.Error("%v", result.Err) flushLogAndExit(1) } else { |