MM-55733 add request context to Channelstore.Save method (#26141)

Этот коммит содержится в:
Aswath S
2024-02-24 17:38:51 +05:30
коммит произвёл GitHub
родитель 401de9b321
Коммит dc8fc773dc
34 изменённых файлов: 481 добавлений и 484 удалений

Просмотреть файл

@@ -66,11 +66,8 @@ func (c *SearchChannelStore) indexChannel(rctx request.CTX, channel *model.Chann
}
}
func (c *SearchChannelStore) Save(channel *model.Channel, maxChannels int64) (*model.Channel, error) {
// TODO: Use the actuall request context from the App layer
// https://mattermost.atlassian.net/browse/MM-55733
rctx := request.EmptyContext(c.rootStore.Logger())
newChannel, err := c.ChannelStore.Save(channel, maxChannels)
func (c *SearchChannelStore) Save(rctx request.CTX, channel *model.Channel, maxChannels int64) (*model.Channel, error) {
newChannel, err := c.ChannelStore.Save(rctx, channel, maxChannels)
if err == nil {
c.indexChannel(rctx, newChannel)
}