[MM-55595] Use annotated logger in search layer (#25468)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
5a4dba8809
Коммит
b2ec1ff8ae
@@ -512,7 +512,7 @@ func (api *PluginAPI) SearchUsers(search *model.UserSearch) ([]*model.User, *mod
|
||||
AllowInactive: search.AllowInactive,
|
||||
Limit: search.Limit,
|
||||
}
|
||||
return api.app.SearchUsers(search, pluginSearchUsersOptions)
|
||||
return api.app.SearchUsers(api.ctx, search, pluginSearchUsersOptions)
|
||||
}
|
||||
|
||||
func (api *PluginAPI) SearchPostsInTeam(teamID string, paramsList []*model.SearchParams) ([]*model.Post, *model.AppError) {
|
||||
@@ -763,7 +763,7 @@ func (api *PluginAPI) GetEmoji(emojiId string) (*model.Emoji, *model.AppError) {
|
||||
}
|
||||
|
||||
func (api *PluginAPI) CopyFileInfos(userID string, fileIDs []string) ([]string, *model.AppError) {
|
||||
return api.app.CopyFileInfos(userID, fileIDs)
|
||||
return api.app.CopyFileInfos(api.ctx, userID, fileIDs)
|
||||
}
|
||||
|
||||
func (api *PluginAPI) GetFileInfo(fileID string) (*model.FileInfo, *model.AppError) {
|
||||
@@ -771,7 +771,7 @@ func (api *PluginAPI) GetFileInfo(fileID string) (*model.FileInfo, *model.AppErr
|
||||
}
|
||||
|
||||
func (api *PluginAPI) SetFileSearchableContent(fileID string, content string) *model.AppError {
|
||||
return api.app.SetFileSearchableContent(fileID, content)
|
||||
return api.app.SetFileSearchableContent(api.ctx, fileID, content)
|
||||
}
|
||||
|
||||
func (api *PluginAPI) GetFileInfos(page, perPage int, opt *model.GetFileInfosOptions) ([]*model.FileInfo, *model.AppError) {
|
||||
@@ -1008,7 +1008,7 @@ func (api *PluginAPI) CreateBot(bot *model.Bot) (*model.Bot, *model.AppError) {
|
||||
}
|
||||
|
||||
func (api *PluginAPI) PatchBot(userID string, botPatch *model.BotPatch) (*model.Bot, *model.AppError) {
|
||||
return api.app.PatchBot(userID, botPatch)
|
||||
return api.app.PatchBot(api.ctx, userID, botPatch)
|
||||
}
|
||||
|
||||
func (api *PluginAPI) GetBot(userID string, includeDeleted bool) (*model.Bot, *model.AppError) {
|
||||
|
||||
Ссылка в новой задаче
Block a user