summaryrefslogtreecommitdiffstats
path: root/cmd/platform/channelargs.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/platform/channelargs.go')
-rw-r--r--cmd/platform/channelargs.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/platform/channelargs.go b/cmd/platform/channelargs.go
index 02ee1b6ab..024073915 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, true); result.Err == nil {
+ if result := <-app.Global().Srv.Store.Channel().GetByNameIncludeDeleted(team.Id, channelPart, true); result.Err == nil {
channel = result.Data.(*model.Channel)
} else {
fmt.Println(result.Err.Error())
@@ -50,7 +50,7 @@ func getChannelFromChannelArg(channelArg string) *model.Channel {
}
if channel == nil {
- if result := <-app.Srv.Store.Channel().Get(channelPart, true); result.Err == nil {
+ if result := <-app.Global().Srv.Store.Channel().Get(channelPart, true); result.Err == nil {
channel = result.Data.(*model.Channel)
}
}