mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
change Get() to use Master (#28842)
Co-authored-by: Mattermost Build <build@mattermost.com>
This commit is contained in:
parent
2e010837f0
commit
ad50357792
@ -108,7 +108,7 @@ func (s SqlSharedChannelStore) Get(channelId string) (*model.SharedChannel, erro
|
||||
return nil, errors.Wrapf(err, "getsharedchannel_tosql")
|
||||
}
|
||||
|
||||
if err := s.GetReplicaX().Get(&sc, squery, args...); err != nil {
|
||||
if err := s.GetMasterX().Get(&sc, squery, args...); err != nil {
|
||||
if err == sql.ErrNoRows {
|
||||
return nil, store.NewErrNotFound("SharedChannel", channelId)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user