MM-44953: Refactor EnsureBot to be used from plugin.API (#20521)
The mattermost-plugin-api code also needs to use this. Hence we make it available from plugin.API. https://mattermost.atlassian.net/browse/MM-44953 ```release-note NONE ```
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
b5dec4f4d9
Коммит
4dd2b5f039
@@ -1232,3 +1232,10 @@ func (api *apiTimerLayer) GetCloudLimits() (*model.ProductLimits, error) {
|
||||
api.recordTime(startTime, "GetCloudLimits", _returnsB == nil)
|
||||
return _returnsA, _returnsB
|
||||
}
|
||||
|
||||
func (api *apiTimerLayer) EnsureBotUser(bot *model.Bot) (string, error) {
|
||||
startTime := timePkg.Now()
|
||||
_returnsA, _returnsB := api.apiImpl.EnsureBotUser(bot)
|
||||
api.recordTime(startTime, "EnsureBotUser", _returnsB == nil)
|
||||
return _returnsA, _returnsB
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user